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

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: Address final comments Created 5 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 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 23 matching lines...) Expand all
48 // correct. 48 // correct.
49 virtual void AssertKeyedFactoriesBuilt() = 0; 49 virtual void AssertKeyedFactoriesBuilt() = 0;
50 50
51 // Returns the bookmarks::BookmarkModel factory for dependencies. 51 // Returns the bookmarks::BookmarkModel factory for dependencies.
52 virtual KeyedServiceBaseFactory* GetBookmarkModelFactory() = 0; 52 virtual KeyedServiceBaseFactory* GetBookmarkModelFactory() = 0;
53 53
54 // Returns an instance of bookmarks::BookmarkModel tied to |browser_state|. 54 // Returns an instance of bookmarks::BookmarkModel tied to |browser_state|.
55 virtual bookmarks::BookmarkModel* GetBookmarkModelForBrowserState( 55 virtual bookmarks::BookmarkModel* GetBookmarkModelForBrowserState(
56 ChromeBrowserState* browser_state) = 0; 56 ChromeBrowserState* browser_state) = 0;
57 57
58 // Returns the ProfileOAuth2TokenServiceIOS factory for dependencies. 58 // Returns the ProfileOAuth2TokenService factory for dependencies.
59 virtual KeyedServiceBaseFactory* GetProfileOAuth2TokenServiceIOSFactory() = 0; 59 virtual KeyedServiceBaseFactory* GetProfileOAuth2TokenServiceFactory() = 0;
60 60
61 // Returns an instance of ProfileOAuth2TokenServiceIOS tied to 61 // Returns an instance of ProfileOAuth2TokenService tied to
62 // |browser_state|. 62 // |browser_state|.
63 virtual ProfileOAuth2TokenServiceIOS* 63 virtual ProfileOAuth2TokenService*
64 GetProfileOAuth2TokenServiceIOSForBrowserState( 64 GetProfileOAuth2TokenServiceForBrowserState(
65 ChromeBrowserState* browser_state) = 0; 65 ChromeBrowserState* browser_state) = 0;
66 66
67 // Returns the SigninManager factory for dependencies. 67 // Returns the SigninManager factory for dependencies.
68 virtual KeyedServiceBaseFactory* GetSigninManagerFactory() = 0; 68 virtual KeyedServiceBaseFactory* GetSigninManagerFactory() = 0;
69 69
70 // Returns an instance of SigninManager tied to |browser_state|. 70 // Returns an instance of SigninManager tied to |browser_state|.
71 virtual SigninManager* GetSigninManagerForBrowserState( 71 virtual SigninManager* GetSigninManagerForBrowserState(
72 ChromeBrowserState* browser_state) = 0; 72 ChromeBrowserState* browser_state) = 0;
73 73
74 // Returns the autofill::AutofillWebDataService factory for dependencies. 74 // Returns the autofill::AutofillWebDataService factory for dependencies.
(...skipping 20 matching lines...) Expand all
95 virtual sync_driver::SyncService* GetSyncServiceForBrowserState( 95 virtual sync_driver::SyncService* GetSyncServiceForBrowserState(
96 ChromeBrowserState* browser_state) = 0; 96 ChromeBrowserState* browser_state) = 0;
97 97
98 private: 98 private:
99 DISALLOW_COPY_AND_ASSIGN(KeyedServiceProvider); 99 DISALLOW_COPY_AND_ASSIGN(KeyedServiceProvider);
100 }; 100 };
101 101
102 } // namespace ios 102 } // namespace ios
103 103
104 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_ 104 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698