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

Unified Diff: chrome/browser/webdata/web_data_service_factory.h

Issue 839193002: Move ServiceAccessType into //components/keyed_service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on android Created 5 years, 11 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 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();
« no previous file with comments | « chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc ('k') | chrome/browser/webdata/web_data_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698