Chromium Code Reviews| 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_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "base/time/time.h" | |
|
groby-ooo-7-16
2015/03/19 23:47:56
just forward declare TimeDelta?
Evan Stade
2015/03/20 00:22:42
mildly surprised that worked. done
| |
| 9 | 10 |
| 10 namespace content { | 11 namespace content { |
| 11 class WebContents; | 12 class WebContents; |
| 12 } | 13 } |
| 13 | 14 |
| 14 namespace autofill { | 15 namespace autofill { |
| 15 | 16 |
| 16 class CardUnmaskPromptController { | 17 class CardUnmaskPromptController { |
| 17 public: | 18 public: |
| 18 // Interaction. | 19 // Interaction. |
| 19 virtual void OnUnmaskDialogClosed() = 0; | 20 virtual void OnUnmaskDialogClosed() = 0; |
| 20 virtual void OnUnmaskResponse(const base::string16& cvc, | 21 virtual void OnUnmaskResponse(const base::string16& cvc, |
| 21 const base::string16& exp_month, | 22 const base::string16& exp_month, |
| 22 const base::string16& exp_year, | 23 const base::string16& exp_year, |
| 23 bool should_store_pan) = 0; | 24 bool should_store_pan) = 0; |
| 24 | 25 |
| 25 // State. | 26 // State. |
| 26 virtual content::WebContents* GetWebContents() = 0; | 27 virtual content::WebContents* GetWebContents() = 0; |
| 27 virtual base::string16 GetWindowTitle() const = 0; | 28 virtual base::string16 GetWindowTitle() const = 0; |
| 28 virtual base::string16 GetInstructionsMessage() const = 0; | 29 virtual base::string16 GetInstructionsMessage() const = 0; |
| 29 virtual int GetCvcImageRid() const = 0; | 30 virtual int GetCvcImageRid() const = 0; |
| 30 virtual bool ShouldRequestExpirationDate() const = 0; | 31 virtual bool ShouldRequestExpirationDate() const = 0; |
| 31 virtual bool GetStoreLocallyStartState() const = 0; | 32 virtual bool GetStoreLocallyStartState() const = 0; |
| 32 virtual bool InputCvcIsValid(const base::string16& input_text) const = 0; | 33 virtual bool InputCvcIsValid(const base::string16& input_text) const = 0; |
| 33 virtual bool InputExpirationIsValid(const base::string16& month, | 34 virtual bool InputExpirationIsValid(const base::string16& month, |
| 34 const base::string16& year) const = 0; | 35 const base::string16& year) const = 0; |
| 36 virtual base::TimeDelta GetSuccessMessageDuration() const = 0; | |
| 35 }; | 37 }; |
| 36 | 38 |
| 37 } // namespace autofill | 39 } // namespace autofill |
| 38 | 40 |
| 39 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_H_ | 41 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_H_ |
| OLD | NEW |