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.
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_CARD_UNMASK_DELEGATE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_CARD_UNMASK_DELEGATE_H_
10 #include "base/strings/string16.h"
14 class CardUnmaskDelegate
{
16 struct UnmaskResponse
{
24 base::string16 exp_month
;
27 base::string16 exp_year
;
29 // State of "copy to this device" checkbox.
30 bool should_store_pan
;
33 std::string risk_data
;
36 // Called when the user has attempted a verification. Prompt is still
37 // open at this point.
38 virtual void OnUnmaskResponse(const UnmaskResponse
& response
) = 0;
40 // Called when the unmask prompt is closed (e.g., cancelled).
41 virtual void OnUnmaskPromptClosed() = 0;
44 } // namespace autofill
46 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CARD_UNMASK_DELEGATE_H_