| 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 1f0aa76a8761e7bfa0564529ef269b774c4b3724..5b9c5c0358345472844225a48a0ed1656be8d21c 100644
|
| --- a/chrome/browser/webdata/web_data_service_factory.h
|
| +++ b/chrome/browser/webdata/web_data_service_factory.h
|
| @@ -5,13 +5,14 @@
|
| #ifndef CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_FACTORY_H__
|
| #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_FACTORY_H__
|
|
|
| -#include "base/basictypes.h"
|
| +#include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| -#include "chrome/browser/profiles/profile.h"
|
| #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
|
| +#include "components/keyed_service/core/service_access_type.h"
|
|
|
| template <typename T> struct DefaultSingletonTraits;
|
| class KeywordWebDataService;
|
| +class Profile;
|
| class TokenWebData;
|
| class WebDataServiceWrapper;
|
|
|
| @@ -20,43 +21,40 @@ class PasswordWebDataService;
|
| #endif
|
|
|
| namespace autofill {
|
| -class AutofillWebDataBackend;
|
| class AutofillWebDataService;
|
| -} // namespace autofill
|
| +}
|
|
|
| // Singleton that owns all WebDataServiceWrappers and associates them with
|
| // Profiles.
|
| class WebDataServiceFactory : public BrowserContextKeyedServiceFactory {
|
| public:
|
| // Returns the WebDataServiceWrapper associated with the |profile|.
|
| - static WebDataServiceWrapper* GetForProfile(
|
| - Profile* profile,
|
| - Profile::ServiceAccessType access_type);
|
| + static WebDataServiceWrapper* GetForProfile(Profile* profile,
|
| + ServiceAccessType access_type);
|
|
|
| static WebDataServiceWrapper* GetForProfileIfExists(
|
| Profile* profile,
|
| - Profile::ServiceAccessType access_type);
|
| + ServiceAccessType access_type);
|
|
|
| // Returns the AutofillWebDataService associated with the |profile|.
|
| static scoped_refptr<autofill::AutofillWebDataService>
|
| - GetAutofillWebDataForProfile(Profile* profile,
|
| - Profile::ServiceAccessType access_type);
|
| + GetAutofillWebDataForProfile(Profile* profile, ServiceAccessType access_type);
|
|
|
| // Returns the KeywordWebDataService associated with the |profile|.
|
| static scoped_refptr<KeywordWebDataService> GetKeywordWebDataForProfile(
|
| Profile* profile,
|
| - Profile::ServiceAccessType access_type);
|
| + ServiceAccessType access_type);
|
|
|
| // Returns the TokenWebData associated with the |profile|.
|
| static scoped_refptr<TokenWebData> GetTokenWebDataForProfile(
|
| Profile* profile,
|
| - Profile::ServiceAccessType access_type);
|
| + ServiceAccessType access_type);
|
|
|
| #if defined(OS_WIN)
|
| // Returns the PasswordWebDataService associated with the |profile|.
|
| static scoped_refptr<PasswordWebDataService> GetPasswordWebDataForProfile(
|
| Profile* profile,
|
| - Profile::ServiceAccessType access_type);
|
| + ServiceAccessType access_type);
|
| #endif
|
|
|
| static WebDataServiceFactory* GetInstance();
|
|
|