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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/autofill/instrument_unmask_prompt_view.h
diff --git a/chrome/browser/ui/autofill/instrument_unmask_prompt_view.h b/chrome/browser/ui/autofill/instrument_unmask_prompt_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..d512dddddd0455ad9c52ec71fc74df8530ac0af5
--- /dev/null
+++ b/chrome/browser/ui/autofill/instrument_unmask_prompt_view.h
@@ -0,0 +1,39 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_AUTOFILL_INSTRUMENT_UNMASK_PROMPT_VIEW_H_
+#define CHROME_BROWSER_UI_AUTOFILL_INSTRUMENT_UNMASK_PROMPT_VIEW_H_
+
+#include "base/callback.h"
+#include "base/strings/string16.h"
+
+namespace content {
+class WebContents;
+}
+
+namespace autofill {
+
+// The cross-platform UI interface which prompts the user to unlock a masked
+// Wallet instrument (credit card). This object is responsible for its own
+// lifetime.
+class InstrumentUnmaskPromptView {
+ public:
+ typedef base::Callback<void(const base::string16& /* CVC */)> UnmaskCallback;
+
+ // |finished| is guaranteed to be called.
+ static InstrumentUnmaskPromptView* CreateAndShow(
+ content::WebContents* web_contents,
+ const UnmaskCallback& finished);
+
+ protected:
+ InstrumentUnmaskPromptView();
+ virtual ~InstrumentUnmaskPromptView();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(InstrumentUnmaskPromptView);
+};
+
+} // namespace autofill
+
+#endif // CHROME_BROWSER_UI_AUTOFILL_INSTRUMENT_UNMASK_PROMPT_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698