[Media Router] Add integration tests and e2e tests for media router and presentation...
[chromium-blink-merge.git] / components / autofill / core / browser / card_unmask_delegate.h
blob73ec3b09137867f7f0154e1ac61cb56f652b938b
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_
8 #include <string>
10 #include "base/strings/string16.h"
12 namespace autofill {
14 class CardUnmaskDelegate {
15 public:
16 struct UnmaskResponse {
17 UnmaskResponse();
18 ~UnmaskResponse();
20 // User input data.
21 base::string16 cvc;
23 // Two digit month.
24 base::string16 exp_month;
26 // Four digit year.
27 base::string16 exp_year;
29 // State of "copy to this device" checkbox.
30 bool should_store_pan;
32 // Risk fingerprint.
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_