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

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

Issue 12695015: Split Autofill webdata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure merge to 12853004 (move table creation to factory) 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
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..86d090ca881cee88a0af31e87672b963566c6613 100644
--- a/chrome/browser/webdata/web_data_service_factory.h
+++ b/chrome/browser/webdata/web_data_service_factory.h
@@ -11,9 +11,13 @@
#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;
// A wrapper of WebDataService so that we can use it as a profile keyed service.
class WebDataServiceWrapper : public ProfileKeyedService {
+
dhollowa 2013/03/21 16:44:07 nit: remove empty line
Cait (Slow) 2013/03/21 23:23:27 Done.
public:
explicit WebDataServiceWrapper(Profile* profile);
@@ -27,8 +31,12 @@ class WebDataServiceWrapper : public ProfileKeyedService {
virtual scoped_refptr<WebDataService> GetWebData();
+ virtual scoped_refptr<AutofillWebDataService> GetAutofillWebData();
+
private:
scoped_refptr<WebDataService> web_data_service_;
+ scoped_refptr<WebDatabaseService> web_database_;
+ scoped_refptr<AutofillWebDataService> autofill_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();

Powered by Google App Engine
This is Rietveld 408576698