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

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

Issue 12212057: [Autofill] Add ability to load Risk fingerprint data in AutofillDialogControllerImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 10 months 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/autofill_dialog_controller_impl.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
index 851c7d2b253bbf3505001192b447fe716c23654e..3a1fc448e9a88be139252a7b135d1cbc99bf8fc8 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
@@ -42,6 +42,10 @@ namespace autofill {
class AutofillDialogView;
class DataModelWrapper;
+namespace risk {
+class Fingerprint;
+}
+
// This class drives the dialog that appears when a site uses the imperative
// autocomplete API to fill out a form.
class AutofillDialogControllerImpl : public AutofillDialogController,
@@ -227,6 +231,11 @@ class AutofillDialogControllerImpl : public AutofillDialogController,
// Hides |popup_controller_|'s popup view, if it exists.
void HidePopup();
+ // Asks risk module to asynchronously load fingerprint data. Data will be
+ // returned via OnDidLoadRiskFingerprintData.
+ void LoadRiskFingerprintData();
+ void OnDidLoadRiskFingerprintData(scoped_ptr<risk::Fingerprint> fingerprint);
+
// The |profile| for |contents_|.
Profile* const profile_;
@@ -297,6 +306,8 @@ class AutofillDialogControllerImpl : public AutofillDialogController,
// A NotificationRegistrar for tracking the completion of sign-in.
content::NotificationRegistrar registrar_;
+ base::WeakPtrFactory<AutofillDialogControllerImpl> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698