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

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

Issue 13928035: WIP Component build of autofill Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make windows compiling Created 7 years, 8 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 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();

Powered by Google App Engine
This is Rietveld 408576698