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

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

Issue 1257663002: iOS factories for SigninManager and GaiaCookieManagerService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fakeSigninManager
Patch Set: Fix copyright Created 5 years, 4 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
« no previous file with comments | « ios/chrome/ios_chrome_tests.gyp ('k') | ios/public/test/test_keyed_service_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 SigninManager;
15 14
16 namespace bookmarks { 15 namespace bookmarks {
17 class BookmarkModel; 16 class BookmarkModel;
18 } 17 }
19 18
20 namespace sync_driver { 19 namespace sync_driver {
21 class SyncService; 20 class SyncService;
22 } 21 }
23 22
24 namespace ios { 23 namespace ios {
(...skipping 17 matching lines...) Expand all
42 // correct. 41 // correct.
43 virtual void AssertKeyedFactoriesBuilt() = 0; 42 virtual void AssertKeyedFactoriesBuilt() = 0;
44 43
45 // Returns the bookmarks::BookmarkModel factory for dependencies. 44 // Returns the bookmarks::BookmarkModel factory for dependencies.
46 virtual KeyedServiceBaseFactory* GetBookmarkModelFactory() = 0; 45 virtual KeyedServiceBaseFactory* GetBookmarkModelFactory() = 0;
47 46
48 // Returns an instance of bookmarks::BookmarkModel tied to |browser_state|. 47 // Returns an instance of bookmarks::BookmarkModel tied to |browser_state|.
49 virtual bookmarks::BookmarkModel* GetBookmarkModelForBrowserState( 48 virtual bookmarks::BookmarkModel* GetBookmarkModelForBrowserState(
50 ChromeBrowserState* browser_state) = 0; 49 ChromeBrowserState* browser_state) = 0;
51 50
52 // Returns the SigninManager factory for dependencies.
53 virtual KeyedServiceBaseFactory* GetSigninManagerFactory() = 0;
54
55 // Returns an instance of SigninManager tied to |browser_state|.
56 virtual SigninManager* GetSigninManagerForBrowserState(
57 ChromeBrowserState* browser_state) = 0;
58
59 // Returns the sync_driver::SyncService factory for dependencies. 51 // Returns the sync_driver::SyncService factory for dependencies.
60 virtual KeyedServiceBaseFactory* GetSyncServiceFactory() = 0; 52 virtual KeyedServiceBaseFactory* GetSyncServiceFactory() = 0;
61 53
62 // Returns an instance of sync_driver::SyncService tied to |browser_state|. 54 // Returns an instance of sync_driver::SyncService tied to |browser_state|.
63 virtual sync_driver::SyncService* GetSyncServiceForBrowserState( 55 virtual sync_driver::SyncService* GetSyncServiceForBrowserState(
64 ChromeBrowserState* browser_state) = 0; 56 ChromeBrowserState* browser_state) = 0;
65 57
66 private: 58 private:
67 DISALLOW_COPY_AND_ASSIGN(KeyedServiceProvider); 59 DISALLOW_COPY_AND_ASSIGN(KeyedServiceProvider);
68 }; 60 };
69 61
70 } // namespace ios 62 } // namespace ios
71 63
72 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_ 64 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_
OLDNEW
« no previous file with comments | « ios/chrome/ios_chrome_tests.gyp ('k') | ios/public/test/test_keyed_service_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698