Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: chrome/browser/ui/autofill/card_unmask_prompt_view.h

Issue 1020013003: Add a regression test for the CardUnmaskPrompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: EXPECT Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_
7 7
8 #include "base/strings/string16.h"
9
8 namespace autofill { 10 namespace autofill {
9 11
10 class CardUnmaskPromptController; 12 class CardUnmaskPromptController;
11 13
12 // The cross-platform UI interface which prompts the user to unlock a masked 14 // The cross-platform UI interface which prompts the user to unlock a masked
13 // Wallet instrument (credit card). This object is responsible for its own 15 // Wallet instrument (credit card). This object is responsible for its own
14 // lifetime. 16 // lifetime.
15 class CardUnmaskPromptView { 17 class CardUnmaskPromptView {
16 public: 18 public:
17 static CardUnmaskPromptView* CreateAndShow( 19 static CardUnmaskPromptView* CreateAndShow(
18 CardUnmaskPromptController* controller); 20 CardUnmaskPromptController* controller);
19 21
20 virtual void ControllerGone() = 0; 22 virtual void ControllerGone() = 0;
21 virtual void DisableAndWaitForVerification() = 0; 23 virtual void DisableAndWaitForVerification() = 0;
22 virtual void GotVerificationResult(const base::string16& error_message, 24 virtual void GotVerificationResult(const base::string16& error_message,
23 bool allow_retry) = 0; 25 bool allow_retry) = 0;
24 26
25 protected: 27 protected:
26 CardUnmaskPromptView() {} 28 CardUnmaskPromptView() {}
27 virtual ~CardUnmaskPromptView() {} 29 virtual ~CardUnmaskPromptView() {}
28 30
29 private: 31 private:
30 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptView); 32 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptView);
31 }; 33 };
32 34
33 } // namespace autofill 35 } // namespace autofill
34 36
35 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_ 37 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698