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

Unified Diff: chrome/browser/autofill/autofill_manager.h

Issue 11539003: Pop up requestAutocomplete UI when autofill server hints chrome client that it is in a multipage au… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Convert AutocheckoutManager to use WeakPtr instead of RefCounted. Created 7 years, 11 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/autofill/autofill_manager.h
diff --git a/chrome/browser/autofill/autofill_manager.h b/chrome/browser/autofill/autofill_manager.h
index e2edbd5bb1111cbc9cd7dd657522514c5e6c82f1..7ced4520e816bf35d070dd1b3e465a7e3451d5e4 100644
--- a/chrome/browser/autofill/autofill_manager.h
+++ b/chrome/browser/autofill/autofill_manager.h
@@ -21,12 +21,14 @@
#include "base/string16.h"
#include "base/time.h"
#include "chrome/browser/api/sync/profile_sync_service_observer.h"
+#include "chrome/browser/autofill/autocheckout_manager.h"
#include "chrome/browser/autofill/autocomplete_history_manager.h"
#include "chrome/browser/autofill/autofill_download.h"
#include "chrome/browser/autofill/field_types.h"
#include "chrome/browser/autofill/form_structure.h"
#include "chrome/browser/autofill/personal_data_manager.h"
#include "chrome/common/autofill/autocheckout_status.h"
+#include "chrome/common/form_data.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/common/ssl_status.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h"
@@ -107,6 +109,12 @@ class AutofillManager : public content::WebContentsObserver,
// Remove the specified Autocomplete entry.
void RemoveAutocompleteEntry(const string16& name, const string16& value);
+ // Show dialog for autocheckout. |frame_url| and |ssl_status| are used to
+ // hint the user about security.
+ virtual void ShowAutocheckoutDialog(
+ const GURL& frame_url,
+ const content::SSLStatus& ssl_status);
+
protected:
// Only test code should subclass AutofillManager.
friend class base::RefCounted<AutofillManager>;
@@ -336,6 +344,9 @@ class AutofillManager : public content::WebContentsObserver,
// Handles single-field autocomplete form data.
AutocompleteHistoryManager autocomplete_history_manager_;
+ // Handles autocheckout flows.
+ scoped_ptr<AutocheckoutManager> autocheckout_manager_;
Ilya Sherman 2013/01/17 23:48:12 nit: "AutocheckoutManager autocheckout_manager_;"
Raman Kakilate 2013/01/18 01:17:13 Done.
+
// For logging UMA metrics. Overridden by metrics tests.
scoped_ptr<const AutofillMetrics> metric_logger_;
// Have we logged whether Autofill is enabled for this page load?

Powered by Google App Engine
This is Rietveld 408576698