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 CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "chrome/browser/ui/autofill/card_unmask_prompt_controller.h" | 9 #include "chrome/browser/ui/autofill/card_unmask_prompt_controller.h" |
10 #include "components/autofill/core/browser/credit_card.h" | 10 #include "components/autofill/core/browser/credit_card.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 // The CVC the user entered went through validation. | 25 // The CVC the user entered went through validation. |
26 void OnVerificationResult(bool success); | 26 void OnVerificationResult(bool success); |
27 | 27 |
28 // CardUnmaskPromptController implementation. | 28 // CardUnmaskPromptController implementation. |
29 void OnUnmaskDialogClosed() override; | 29 void OnUnmaskDialogClosed() override; |
30 void OnUnmaskResponse(const base::string16& cvc) override; | 30 void OnUnmaskResponse(const base::string16& cvc) override; |
31 content::WebContents* GetWebContents() override; | 31 content::WebContents* GetWebContents() override; |
32 base::string16 GetWindowTitle() const override; | 32 base::string16 GetWindowTitle() const override; |
33 base::string16 GetInstructionsMessage() const override; | 33 base::string16 GetInstructionsMessage() const override; |
34 int GetCvcImageRid() const override; | 34 int GetCvcImageRid() const override; |
| 35 bool ShouldRequestExpirationDate() const override; |
35 bool InputTextIsValid(const base::string16& input_text) const override; | 36 bool InputTextIsValid(const base::string16& input_text) const override; |
36 | 37 |
37 private: | 38 private: |
38 content::WebContents* web_contents_; | 39 content::WebContents* web_contents_; |
39 CreditCard card_; | 40 CreditCard card_; |
40 base::WeakPtr<CardUnmaskDelegate> delegate_; | 41 base::WeakPtr<CardUnmaskDelegate> delegate_; |
41 CardUnmaskPromptView* card_unmask_view_; | 42 CardUnmaskPromptView* card_unmask_view_; |
42 | 43 |
43 base::WeakPtrFactory<CardUnmaskPromptControllerImpl> weak_pointer_factory_; | 44 base::WeakPtrFactory<CardUnmaskPromptControllerImpl> weak_pointer_factory_; |
44 | 45 |
45 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptControllerImpl); | 46 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptControllerImpl); |
46 }; | 47 }; |
47 | 48 |
48 } // namespace autofill | 49 } // namespace autofill |
49 | 50 |
50 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_ | 51 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_ |
OLD | NEW |