blob: aa8e35431181d0997101195444d868dd3e3100ae [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_AUTOFILL_PAYMENTS_SAVE_UPI_BUBBLE_CONTROLLER_H_
#define CHROME_BROWSER_UI_AUTOFILL_PAYMENTS_SAVE_UPI_BUBBLE_CONTROLLER_H_
#include <string>
namespace autofill {
// Interface that exposes controller functionality to SaveUPIBubbleView.
class SaveUPIBubbleController {
public:
SaveUPIBubbleController() = default;
virtual ~SaveUPIBubbleController() = default;
// Returns the UPI ID being stored.
virtual std::u16string GetUpiId() const = 0;
// The user accepted the prompt to save the UPI ID.
virtual void OnAccept() = 0;
virtual void OnBubbleClosed() = 0;
};
} // namespace autofill
#endif // CHROME_BROWSER_UI_AUTOFILL_PAYMENTS_SAVE_UPI_BUBBLE_CONTROLLER_H_