| 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).
|
|
|