| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // 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 "base/strings/string16.h" |
| |
| namespace autofill { |
| |
| // Interface that exposes controller functionality to SaveUPIBubbleView. |
| class SaveUPIBubbleController { |
| public: |
| SaveUPIBubbleController() = default; |
| virtual ~SaveUPIBubbleController() = default; |
| |
| // Returns the UPI ID being stored. |
| virtual base::string16 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_ |