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_CARD_UNMASK_DELEGATE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_CARD_UNMASK_DELEGATE_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_CARD_UNMASK_DELEGATE_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_CARD_UNMASK_DELEGATE_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 | 9 |
10 namespace autofill { | 10 namespace autofill { |
11 | 11 |
12 class CardUnmaskDelegate { | 12 class CardUnmaskDelegate { |
13 public: | 13 public: |
14 // Called when the user has attempted a verification. Prompt is still | 14 // Called when the user has attempted a verification. Prompt is still |
15 // open at this point. | 15 // open at this point. |
16 virtual void OnUnmaskResponse(const base::string16& cvc) = 0; | 16 virtual void OnUnmaskResponse(const base::string16& cvc, |
| 17 const base::string16& exp_month, |
| 18 const base::string16& exp_year) = 0; |
17 | 19 |
18 // Called when the unmask prompt is closed (e.g., cancelled). | 20 // Called when the unmask prompt is closed (e.g., cancelled). |
19 virtual void OnUnmaskPromptClosed() = 0; | 21 virtual void OnUnmaskPromptClosed() = 0; |
20 }; | 22 }; |
21 | 23 |
22 } // namespace autofill | 24 } // namespace autofill |
23 | 25 |
24 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CARD_UNMASK_DELEGATE_H_ | 26 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CARD_UNMASK_DELEGATE_H_ |
OLD | NEW |