| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_ | |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_ | |
| 7 | |
| 8 #include "base/strings/string16.h" | |
| 9 | |
| 10 namespace autofill { | |
| 11 | |
| 12 class CardUnmaskPromptController; | |
| 13 | |
| 14 // The cross-platform UI interface which prompts the user to unlock a masked | |
| 15 // Wallet instrument (credit card). This object is responsible for its own | |
| 16 // lifetime. | |
| 17 class CardUnmaskPromptView { | |
| 18 public: | |
| 19 static CardUnmaskPromptView* CreateAndShow( | |
| 20 CardUnmaskPromptController* controller); | |
| 21 | |
| 22 virtual void ControllerGone() = 0; | |
| 23 virtual void DisableAndWaitForVerification() = 0; | |
| 24 virtual void GotVerificationResult(const base::string16& error_message, | |
| 25 bool allow_retry) = 0; | |
| 26 | |
| 27 protected: | |
| 28 CardUnmaskPromptView() {} | |
| 29 virtual ~CardUnmaskPromptView() {} | |
| 30 | |
| 31 private: | |
| 32 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptView); | |
| 33 }; | |
| 34 | |
| 35 } // namespace autofill | |
| 36 | |
| 37 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_ | |
| OLD | NEW |