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

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: fix compile and docs 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/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 772119c21355df5002c502bfac682c3a9f34b2d9..cc4901bce31b7571547f432647e922f2998892ac 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;
Ted C 2014/12/10 22:04:59 delete?
Evan Stade 2014/12/10 23:46:20 Done.
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;
@@ -98,10 +101,11 @@ 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_;
@@ -116,6 +120,8 @@ class ChromeAutofillClient
AutofillKeystoneBridgeWrapper* bridge_wrapper_;
#endif // defined(OS_MACOSX) && !defined(OS_IOS)
+ base::WeakPtrFactory<ChromeAutofillClient> weak_pointer_factory_;
+
DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient);
};

Powered by Google App Engine
This is Rietveld 408576698