ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / components / autofill / core / browser / card_unmask_delegate.h
blobdee37059cd370636d8b7c70eb3cb4bc49a9551d8
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;
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_