| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_UI_CARD_UNMASK_PROMPT_VIEW_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_UI_CARD_UNMASK_PROMPT_VIEW_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_UI_CARD_UNMASK_PROMPT_VIEW_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_UI_CARD_UNMASK_PROMPT_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 | 10 |
| 11 namespace autofill { | 11 namespace autofill { |
| 12 | 12 |
| 13 class CardUnmaskPromptController; | |
| 14 | |
| 15 // The cross-platform UI interface which prompts the user to unlock a masked | 13 // The cross-platform UI interface which prompts the user to unlock a masked |
| 16 // Wallet instrument (credit card). This object is responsible for its own | 14 // Wallet instrument (credit card). This object is responsible for its own |
| 17 // lifetime. | 15 // lifetime. |
| 18 class CardUnmaskPromptView { | 16 class CardUnmaskPromptView { |
| 19 public: | 17 public: |
| 20 virtual void Show() = 0; | 18 virtual void Show() = 0; |
| 21 virtual void ControllerGone() = 0; | 19 virtual void ControllerGone() = 0; |
| 22 virtual void DisableAndWaitForVerification() = 0; | 20 virtual void DisableAndWaitForVerification() = 0; |
| 23 virtual void GotVerificationResult(const base::string16& error_message, | 21 virtual void GotVerificationResult(const base::string16& error_message, |
| 24 bool allow_retry) = 0; | 22 bool allow_retry) = 0; |
| 25 | 23 |
| 26 protected: | 24 protected: |
| 27 CardUnmaskPromptView() {} | 25 CardUnmaskPromptView() {} |
| 28 virtual ~CardUnmaskPromptView() {} | 26 virtual ~CardUnmaskPromptView() {} |
| 29 | 27 |
| 30 private: | 28 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptView); | 29 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptView); |
| 32 }; | 30 }; |
| 33 | 31 |
| 34 } // namespace autofill | 32 } // namespace autofill |
| 35 | 33 |
| 36 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_UI_CARD_UNMASK_PROMPT_VIEW_H_ | 34 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_UI_CARD_UNMASK_PROMPT_VIEW_H_ |
| OLD | NEW |