Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(548)

Side by Side Diff: chrome/browser/ui/autofill/instrument_unmask_prompt_view.h

Issue 756333003: Prompt for unmasking Wallet credit card on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix AW Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_UI_AUTOFILL_INSTRUMENT_UNMASK_PROMPT_VIEW_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_INSTRUMENT_UNMASK_PROMPT_VIEW_H_
7
8 #include "base/callback.h"
9 #include "base/strings/string16.h"
10
11 namespace content {
12 class WebContents;
13 }
14
15 namespace autofill {
16
17 // The cross-platform UI interface which prompts the user to unlock a masked
18 // Wallet instrument (credit card). This object is responsible for its own
19 // lifetime.
20 class InstrumentUnmaskPromptView {
21 public:
22 typedef base::Callback<void(const base::string16& /* CVC */)> UnmaskCallback;
23
24 // |finished| is guaranteed to be called.
25 static InstrumentUnmaskPromptView* CreateAndShow(
26 content::WebContents* web_contents,
27 const UnmaskCallback& finished);
28
29 protected:
30 InstrumentUnmaskPromptView();
31 virtual ~InstrumentUnmaskPromptView();
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(InstrumentUnmaskPromptView);
35 };
36
37 } // namespace autofill
38
39 #endif // CHROME_BROWSER_UI_AUTOFILL_INSTRUMENT_UNMASK_PROMPT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698