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

Unified Diff: components/autofill/content/browser/content_autofill_driver_factory.h

Issue 2745803003: autofill-try
Patch Set: before I leave Created 3 years, 9 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: components/autofill/content/browser/content_autofill_driver_factory.h
diff --git a/components/autofill/content/browser/content_autofill_driver_factory.h b/components/autofill/content/browser/content_autofill_driver_factory.h
index df2d8bcaf66de4d6382f9627922f7006caa67d49..e9b84b1c0dc8264929e3180b437b7472da9d3b44 100644
--- a/components/autofill/content/browser/content_autofill_driver_factory.h
+++ b/components/autofill/content/browser/content_autofill_driver_factory.h
@@ -20,6 +20,7 @@ class RenderFrameHost;
namespace autofill {
class ContentAutofillDriver;
+class AutofillProvider;
// Manages lifetime of ContentAutofillDriver. One Factory per WebContents
// creates one Driver per RenderFrame.
@@ -34,6 +35,14 @@ class ContentAutofillDriverFactory : public AutofillDriverFactory,
AutofillClient* client,
const std::string& app_locale,
AutofillManager::AutofillDownloadManagerState enable_download_manager);
+
+ static void CreateForWebContentsAndDelegate(
+ content::WebContents* contents,
+ AutofillClient* client,
+ const std::string& app_locale,
+ AutofillManager::AutofillDownloadManagerState enable_download_manager,
+ AutofillProvider* provider);
+
static ContentAutofillDriverFactory* FromWebContents(
content::WebContents* contents);
static void BindAutofillDriver(content::RenderFrameHost* render_frame_host,
@@ -58,10 +67,12 @@ class ContentAutofillDriverFactory : public AutofillDriverFactory,
content::WebContents* web_contents,
AutofillClient* client,
const std::string& app_locale,
- AutofillManager::AutofillDownloadManagerState enable_download_manager);
+ AutofillManager::AutofillDownloadManagerState enable_download_manager,
+ AutofillProvider* provider);
std::string app_locale_;
AutofillManager::AutofillDownloadManagerState enable_download_manager_;
+ AutofillProvider* provider_;
};
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698