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

Unified Diff: chrome/browser/ui/autofill/chrome_autofill_client.h

Issue 756333003: Prompt for unmasking Wallet credit card on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge conflicts Created 6 years, 1 month 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/chrome_autofill_client.h
diff --git a/chrome/browser/ui/autofill/chrome_autofill_client.h b/chrome/browser/ui/autofill/chrome_autofill_client.h
index 09d346a81f7be91f90a6f5c6e2d2ba8f71b7d553..3fbc8175365624e31d6167ac1b04ace7c1f37ed9 100644
--- a/chrome/browser/ui/autofill/chrome_autofill_client.h
+++ b/chrome/browser/ui/autofill/chrome_autofill_client.h
@@ -8,6 +8,7 @@
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/i18n/rtl.h"
+#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/ui/zoom/zoom_observer.h"
#include "components/autofill/core/browser/autofill_client.h"
@@ -26,6 +27,7 @@ class AutofillDialogController;
class AutofillKeystoneBridgeWrapper;
class AutofillPopupControllerImpl;
class CreditCardScannerController;
+class InstrumentUnmaskPromptView;
struct FormData;
// Chrome implementation of AutofillClient.
@@ -46,6 +48,7 @@ class ChromeAutofillClient
PrefService* GetPrefs() override;
void HideRequestAutocompleteDialog() override;
void ShowAutofillSettings() override;
+ void ShowUnmaskPrompt() override;
void ConfirmSaveCreditCard(const AutofillMetrics& metric_logger,
const base::Closure& save_card_callback) override;
bool HasCreditCardScanFeature() override;
@@ -96,12 +99,15 @@ class ChromeAutofillClient
void UnregisterFromKeystoneNotifications();
#endif // defined(OS_MACOSX) && !defined(OS_IOS)
+ void OnUnmaskResponse(const base::string16& response);
+
explicit ChromeAutofillClient(content::WebContents* web_contents);
friend class content::WebContentsUserData<ChromeAutofillClient>;
content::WebContents* const web_contents_;
base::WeakPtr<AutofillDialogController> dialog_controller_;
base::WeakPtr<AutofillPopupControllerImpl> popup_controller_;
+ scoped_ptr<InstrumentUnmaskPromptView> unmask_prompt_;
#if defined(OS_MACOSX) && !defined(OS_IOS)
// Listens to Keystone notifications and passes relevant ones on to the

Powered by Google App Engine
This is Rietveld 408576698