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(); |