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

Unified Diff: ios/public/provider/chrome/browser/keyed_service_provider.h

Issue 1159743005: Provide iOS implementation of BookmarkServerClusterService factory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmark_service_cluster
Patch Set: Created 5 years, 7 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
« no previous file with comments | « ios/chrome/ios_chrome.gyp ('k') | ios/public/provider/chrome/browser/keyed_service_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/public/provider/chrome/browser/keyed_service_provider.h
diff --git a/ios/public/provider/chrome/browser/keyed_service_provider.h b/ios/public/provider/chrome/browser/keyed_service_provider.h
index bc70253413f11d22184dfc25d4224ec14ae653aa..ab5bcf1b888440d5fb38fbfcd609866632976026 100644
--- a/ios/public/provider/chrome/browser/keyed_service_provider.h
+++ b/ios/public/provider/chrome/browser/keyed_service_provider.h
@@ -10,11 +10,23 @@
enum class ServiceAccessType;
+class KeyedServiceBaseFactory;
+class ProfileOAuth2TokenService;
+class SigninManager;
+
namespace autofill {
class AutofillWebDataService;
class PersonalDataManager;
}
+namespace enhanced_bookmarks {
+class EnhancedBookmarkModel;
+}
+
+namespace sync_driver {
+class SyncService;
+}
+
namespace ios {
class ChromeBrowserState;
@@ -26,17 +38,54 @@ class KeyedServiceProvider {
KeyedServiceProvider();
virtual ~KeyedServiceProvider();
+ // Returns the ProfileOAuth2TokenService factory for dependencies.
+ virtual KeyedServiceBaseFactory* GetProfileOAuth2TokenServiceFactory();
+
+ // Returns an instance of ProfileOAuth2TokenService tied to |browser_state|.
+ virtual ProfileOAuth2TokenService*
+ GetProfileOAuth2TokenServiceForBrowserState(
+ ChromeBrowserState* browser_state);
+
+ // Returns the SigninManager factory for dependencies.
+ virtual KeyedServiceBaseFactory* GetSigninManagerFactory();
+
+ // Returns an instance of SigninManager tied to |browser_state|.
+ virtual SigninManager* GetSigninManagerForBrowserState(
+ ChromeBrowserState* browser_state);
+
+ // Returns the autofill::AutofillWebDataService factory for dependencies.
+ virtual KeyedServiceBaseFactory* GetAutofillWebDataFactory();
+
// Returns an instance of autofill::AutofillWebDataService tied to
// |browser_state|.
virtual scoped_refptr<autofill::AutofillWebDataService>
GetAutofillWebDataForBrowserState(ChromeBrowserState* browser_state,
ServiceAccessType access_type);
+ // Returns the autofill::PersonalDataManager factory for dependencies.
+ virtual KeyedServiceBaseFactory* GetPersonalDataManagerFactory();
+
// Returns an instance of autofill::PersonalDataManager tied to
// |browser_state|.
virtual autofill::PersonalDataManager* GetPersonalDataManagerForBrowserState(
ChromeBrowserState* browser_state);
+ // Returns the enhanced_bookmarks::EnhancedBookmarkModel factory for
+ // dependencies.
+ virtual KeyedServiceBaseFactory* GetEnhancedBookmarkModelFactory();
+
+ // Returns an instance of enhanced_bookmarks::EnhancedBookmarkModel tied to
+ // |browser_state|.
+ virtual enhanced_bookmarks::EnhancedBookmarkModel*
+ GetEnhancedBookmarkModelForBrowserState(ChromeBrowserState* browser_state);
+
+ // Returns the sync_driver::SyncService factory for dependencies.
+ virtual KeyedServiceBaseFactory* GetSyncServiceFactory();
+
+ // Returns an instance of sync_driver::SyncService tied to |browser_state|.
+ virtual sync_driver::SyncService* GetSyncServiceForBrowserState(
+ ChromeBrowserState* browser_state);
+
private:
DISALLOW_COPY_AND_ASSIGN(KeyedServiceProvider);
};
« no previous file with comments | « ios/chrome/ios_chrome.gyp ('k') | ios/public/provider/chrome/browser/keyed_service_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698