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

Unified Diff: chrome/browser/webdata/web_data_service_factory.h

Issue 12897009: Autofill Webdata Split TRY ONLY (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try again Created 7 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
« no previous file with comments | « chrome/browser/webdata/web_data_service_base.cc ('k') | chrome/browser/webdata/web_data_service_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/webdata/web_data_service_factory.h
diff --git a/chrome/browser/webdata/web_data_service_factory.h b/chrome/browser/webdata/web_data_service_factory.h
index 153a41fd85783dd33d6fcb5e7d482d65c791fa89..f001459278db1ad92e81c78c3a28d4d24104bc2b 100644
--- a/chrome/browser/webdata/web_data_service_factory.h
+++ b/chrome/browser/webdata/web_data_service_factory.h
@@ -10,7 +10,10 @@
#include "base/memory/singleton.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_keyed_service_factory.h"
-#include "chrome/browser/webdata/web_data_service.h"
+#include "chrome/browser/webdata/web_database_service.h"
+
+class AutofillWebDataService;
+class WebDataService;
// A wrapper of WebDataService so that we can use it as a profile keyed service.
class WebDataServiceWrapper : public ProfileKeyedService {
@@ -25,10 +28,15 @@ class WebDataServiceWrapper : public ProfileKeyedService {
// ProfileKeyedService:
virtual void Shutdown() OVERRIDE;
+ virtual scoped_refptr<AutofillWebDataService> GetAutofillWebData();
+
virtual scoped_refptr<WebDataService> GetWebData();
private:
- scoped_refptr<WebDataService> web_data_service_;
+ scoped_refptr<WebDatabaseService> web_database_;
+
+ scoped_refptr<AutofillWebDataService> autofill_web_data_;
+ scoped_refptr<WebDataService> web_data_;
DISALLOW_COPY_AND_ASSIGN(WebDataServiceWrapper);
};
@@ -37,13 +45,13 @@ class WebDataServiceWrapper : public ProfileKeyedService {
// Profiles.
class WebDataServiceFactory : public ProfileKeyedServiceFactory {
public:
- // Returns the |WebDataService| associated with the |profile|.
+ // Returns the |WebDataServiceWrapper| associated with the |profile|.
// |access_type| is either EXPLICIT_ACCESS or IMPLICIT_ACCESS
// (see its definition).
- static scoped_refptr<WebDataService> GetForProfile(
+ static WebDataServiceWrapper* GetForProfile(
Profile* profile, Profile::ServiceAccessType access_type);
- static scoped_refptr<WebDataService> GetForProfileIfExists(
+ static WebDataServiceWrapper* GetForProfileIfExists(
Profile* profile, Profile::ServiceAccessType access_type);
static WebDataServiceFactory* GetInstance();
« no previous file with comments | « chrome/browser/webdata/web_data_service_base.cc ('k') | chrome/browser/webdata/web_data_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698