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

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

Issue 2715483002: Split non-//content parts from ContentAutofillDriverFactory (Closed)
Patch Set: Add instances check Created 3 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
« no previous file with comments | « no previous file | components/autofill/content/browser/content_autofill_driver_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 63e168f60278cadd1c30b97a1158a7ada6fb5847..df2d8bcaf66de4d6382f9627922f7006caa67d49 100644
--- a/components/autofill/content/browser/content_autofill_driver_factory.h
+++ b/components/autofill/content/browser/content_autofill_driver_factory.h
@@ -5,12 +5,11 @@
#ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_FACTORY_H_
#define COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_FACTORY_H_
-#include <map>
-#include <memory>
#include <string>
#include "base/supports_user_data.h"
#include "components/autofill/content/common/autofill_driver.mojom.h"
+#include "components/autofill/core/browser/autofill_driver_factory.h"
#include "components/autofill/core/browser/autofill_manager.h"
#include "content/public/browser/web_contents_observer.h"
@@ -24,7 +23,8 @@ class ContentAutofillDriver;
// Manages lifetime of ContentAutofillDriver. One Factory per WebContents
// creates one Driver per RenderFrame.
-class ContentAutofillDriverFactory : public content::WebContentsObserver,
+class ContentAutofillDriverFactory : public AutofillDriverFactory,
+ public content::WebContentsObserver,
public base::SupportsUserData::Data {
public:
~ContentAutofillDriverFactory() override;
@@ -53,20 +53,15 @@ class ContentAutofillDriverFactory : public content::WebContentsObserver,
static const char kContentAutofillDriverFactoryWebContentsUserDataKey[];
- protected:
+ private:
ContentAutofillDriverFactory(
content::WebContents* web_contents,
AutofillClient* client,
const std::string& app_locale,
AutofillManager::AutofillDownloadManagerState enable_download_manager);
- private:
- AutofillClient* client_;
std::string app_locale_;
AutofillManager::AutofillDownloadManagerState enable_download_manager_;
-
- std::map<content::RenderFrameHost*, std::unique_ptr<ContentAutofillDriver>>
- frame_driver_map_;
};
} // namespace autofill
« no previous file with comments | « no previous file | components/autofill/content/browser/content_autofill_driver_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698