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

Side by Side Diff: chrome/browser/ui/autofill/card_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 compile post-merge 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_CARD_UNMASK_PROMPT_VIEW_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_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 CardUnmaskPromptView {
21 public:
22 typedef base::Callback<void(const base::string16& /* CVC */)> UnmaskCallback;
23
24 // |finished| is guaranteed to be called.
25 static CardUnmaskPromptView* CreateAndShow(content::WebContents* web_contents,
26 const UnmaskCallback& finished);
27
28 protected:
29 CardUnmaskPromptView();
30 virtual ~CardUnmaskPromptView();
31
32 private:
33 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptView);
34 };
35
36 } // namespace autofill
37
38 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698