| 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 28772f7ea65254b6798299116ffa347cb60382ef..96a7867d76ab8ea0e2f6d60ea7fa0388b970ea7f 100644
|
| --- a/chrome/browser/webdata/web_data_service_factory.h
|
| +++ b/chrome/browser/webdata/web_data_service_factory.h
|
| @@ -49,20 +49,27 @@ class WebDataServiceWrapper : public ProfileKeyedService {
|
| // Profiles.
|
| class WebDataServiceFactory : public ProfileKeyedServiceFactory {
|
| public:
|
| - // Returns the |WebDataServiceWrapper| associated with the |profile|.
|
| - // |access_type| is either EXPLICIT_ACCESS or IMPLICIT_ACCESS
|
| - // (see its definition).
|
| - static WebDataServiceWrapper* GetForProfile(
|
| - Profile* profile, Profile::ServiceAccessType access_type);
|
| + static scoped_refptr<WebDataService> GetWebDataServiceForProfile(
|
| + Profile* profile);
|
| + static scoped_refptr<WebDataService> GetWebDataServiceForProfileIfExists(
|
| + Profile* profile);
|
|
|
| - static WebDataServiceWrapper* GetForProfileIfExists(
|
| - Profile* profile, Profile::ServiceAccessType access_type);
|
| + static scoped_refptr<autofill::AutofillWebDataService>
|
| + GetAutofillWebDataServiceForProfile(Profile* profile);
|
|
|
| static WebDataServiceFactory* GetInstance();
|
|
|
| private:
|
| friend struct DefaultSingletonTraits<WebDataServiceFactory>;
|
|
|
| + // Returns the |WebDataServiceWrapper| associated with the |profile|.
|
| + // |access_type| is either EXPLICIT_ACCESS or IMPLICIT_ACCESS
|
| + // (see its definition).
|
| + static WebDataServiceWrapper* GetForProfile(
|
| + Profile* profile,
|
| + Profile::ServiceAccessType access_type,
|
| + bool create_if_not_exist);
|
| +
|
| WebDataServiceFactory();
|
| virtual ~WebDataServiceFactory();
|
|
|
|
|