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

Side by Side Diff: ios/public/provider/chrome/browser/keyed_service_provider.h

Issue 1143323005: Refactor AO2TS to make it easier to componentize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: works for all platforms commit e75a498951318d4deb65d40ce8b2def44cd5abc0 Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_ 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_ 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 10
11 enum class ServiceAccessType; 11 enum class ServiceAccessType;
12 12
13 class KeyedServiceBaseFactory; 13 class KeyedServiceBaseFactory;
14 class ProfileOAuth2TokenServiceIOS; 14 class ProfileOAuth2TokenService;
15 class SigninManager; 15 class SigninManager;
16 16
17 namespace autofill { 17 namespace autofill {
18 class AutofillWebDataService; 18 class AutofillWebDataService;
19 class PersonalDataManager; 19 class PersonalDataManager;
20 } 20 }
21 21
22 namespace bookmarks { 22 namespace bookmarks {
23 class BookmarkModel; 23 class BookmarkModel;
24 } 24 }
(...skipping 27 matching lines...) Expand all
52 // correct. 52 // correct.
53 virtual void AssertKeyedFactoriesBuilt() = 0; 53 virtual void AssertKeyedFactoriesBuilt() = 0;
54 54
55 // Returns the bookmarks::BookmarkModel factory for dependencies. 55 // Returns the bookmarks::BookmarkModel factory for dependencies.
56 virtual KeyedServiceBaseFactory* GetBookmarkModelFactory() = 0; 56 virtual KeyedServiceBaseFactory* GetBookmarkModelFactory() = 0;
57 57
58 // Returns an instance of bookmarks::BookmarkModel tied to |browser_state|. 58 // Returns an instance of bookmarks::BookmarkModel tied to |browser_state|.
59 virtual bookmarks::BookmarkModel* GetBookmarkModelForBrowserState( 59 virtual bookmarks::BookmarkModel* GetBookmarkModelForBrowserState(
60 ChromeBrowserState* browser_state) = 0; 60 ChromeBrowserState* browser_state) = 0;
61 61
62 // Returns the ProfileOAuth2TokenServiceIOS factory for dependencies. 62 // Returns the ProfileOAuth2TokenService factory for dependencies.
63 virtual KeyedServiceBaseFactory* GetProfileOAuth2TokenServiceIOSFactory() = 0; 63 virtual KeyedServiceBaseFactory* GetProfileOAuth2TokenServiceIOSFactory() = 0;
droger 2015/06/29 11:55:53 Can we also rename the functions here (remove IOS)
gogerald1 2015/07/01 17:58:41 Done.
64 64
65 // Returns an instance of ProfileOAuth2TokenServiceIOS tied to 65 // Returns an instance of ProfileOAuth2TokenService tied to
66 // |browser_state|. 66 // |browser_state|.
67 virtual ProfileOAuth2TokenServiceIOS* 67 virtual ProfileOAuth2TokenService*
68 GetProfileOAuth2TokenServiceIOSForBrowserState( 68 GetProfileOAuth2TokenServiceIOSForBrowserState(
69 ChromeBrowserState* browser_state) = 0; 69 ChromeBrowserState* browser_state) = 0;
70 70
71 // Returns the SigninManager factory for dependencies. 71 // Returns the SigninManager factory for dependencies.
72 virtual KeyedServiceBaseFactory* GetSigninManagerFactory() = 0; 72 virtual KeyedServiceBaseFactory* GetSigninManagerFactory() = 0;
73 73
74 // Returns an instance of SigninManager tied to |browser_state|. 74 // Returns an instance of SigninManager tied to |browser_state|.
75 virtual SigninManager* GetSigninManagerForBrowserState( 75 virtual SigninManager* GetSigninManagerForBrowserState(
76 ChromeBrowserState* browser_state) = 0; 76 ChromeBrowserState* browser_state) = 0;
77 77
(...skipping 29 matching lines...) Expand all
107 ChromeBrowserState* browser_state, 107 ChromeBrowserState* browser_state,
108 ServiceAccessType access_type) = 0; 108 ServiceAccessType access_type) = 0;
109 109
110 private: 110 private:
111 DISALLOW_COPY_AND_ASSIGN(KeyedServiceProvider); 111 DISALLOW_COPY_AND_ASSIGN(KeyedServiceProvider);
112 }; 112 };
113 113
114 } // namespace ios 114 } // namespace ios
115 115
116 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_ 116 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698