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

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: 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..25d7b200de717fe473065ca4a557507aafcc710a 100644
--- a/chrome/browser/webdata/web_data_service_factory.h
+++ b/chrome/browser/webdata/web_data_service_factory.h
@@ -11,6 +11,9 @@
#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 {
@@ -27,8 +30,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,6 +44,10 @@ class WebDataServiceWrapper : public ProfileKeyedService {
// Profiles.
class WebDataServiceFactory : public ProfileKeyedServiceFactory {
public:
+ // Returns the wrapper class.
+ static WebDataServiceWrapper* GetWrapper(
+ Profile* profile, Profile::ServiceAccessType access_type);
+
// Returns the |WebDataService| associated with the |profile|.
// |access_type| is either EXPLICIT_ACCESS or IMPLICIT_ACCESS
// (see its definition).

Powered by Google App Engine
This is Rietveld 408576698