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

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

Issue 364343002: Kill WebDataService, move (WIN only) Password code into separate class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix 2 Created 6 years, 5 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 ae3a38581cc30623ae528cb8d3f6ab1f97e3b906..80b40c1c0d13f8b5fff767214be9abe460689b36 100644
--- a/chrome/browser/webdata/web_data_service_factory.h
+++ b/chrome/browser/webdata/web_data_service_factory.h
@@ -15,7 +15,10 @@
class KeywordWebDataService;
class TokenWebData;
-class WebDataService;
+
+#if defined(OS_WIN)
+class PasswordWebDataService;
+#endif
namespace autofill {
class AutofillWebDataService;
@@ -38,17 +41,22 @@ class WebDataServiceWrapper : public KeyedService {
virtual scoped_refptr<KeywordWebDataService> GetKeywordWebData();
- virtual scoped_refptr<WebDataService> GetWebData();
-
virtual scoped_refptr<TokenWebData> GetTokenWebData();
+#if defined(OS_WIN)
+ virtual scoped_refptr<PasswordWebDataService> GetPasswordWebData();
gab 2014/07/07 14:37:21 So this is more specific than a "password service"
Cait (Slow) 2014/07/07 17:04:52 Yeah, it would be great if we could remove this cl
gab 2014/07/07 17:14:45 Ah I see, meh :(... I'm looking into making first
+#endif
+
private:
scoped_refptr<WebDatabaseService> web_database_;
scoped_refptr<autofill::AutofillWebDataService> autofill_web_data_;
scoped_refptr<KeywordWebDataService> keyword_web_data_;
scoped_refptr<TokenWebData> token_web_data_;
- scoped_refptr<WebDataService> web_data_;
+
+#if defined(OS_WIN)
+ scoped_refptr<PasswordWebDataService> password_web_data_;
+#endif
DISALLOW_COPY_AND_ASSIGN(WebDataServiceWrapper);
};
@@ -72,13 +80,21 @@ class WebDataServiceFactory : public BrowserContextKeyedServiceFactory {
Profile::ServiceAccessType access_type);
// Returns the KeywordWebDataService associated with the |profile|.
- static scoped_refptr<KeywordWebDataService>
- GetKeywordWebDataForProfile(Profile* profile,
- Profile::ServiceAccessType access_type);
+ static scoped_refptr<KeywordWebDataService> GetKeywordWebDataForProfile(
+ Profile* profile,
+ Profile::ServiceAccessType access_type);
// Returns the TokenWebData associated with the |profile|.
- static scoped_refptr<TokenWebData> GetTokenWebDataForProfile(Profile* profile,
+ static scoped_refptr<TokenWebData> GetTokenWebDataForProfile(
+ Profile* profile,
+ Profile::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);
+#endif
static WebDataServiceFactory* GetInstance();

Powered by Google App Engine
This is Rietveld 408576698