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
;
35 // Whether we're providing the alternative "risk advisory data" in risk_data
36 // (as opposed to the normal browser fingerprint).
37 bool providing_risk_advisory_data
;
40 // Called when the user has attempted a verification. Prompt is still
41 // open at this point.
42 virtual void OnUnmaskResponse(const UnmaskResponse
& response
) = 0;
44 // Called when the unmask prompt is closed (e.g., cancelled).
45 virtual void OnUnmaskPromptClosed() = 0;
48 } // namespace autofill
50 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CARD_UNMASK_DELEGATE_H_