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

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: 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
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 autofill { 15 namespace autofill {
17 class PersonalDataManager; 16 class PersonalDataManager;
18 } 17 }
19 18
20 namespace bookmarks { 19 namespace bookmarks {
21 class BookmarkModel; 20 class BookmarkModel;
22 } 21 }
23 22
24 namespace sync_driver { 23 namespace sync_driver {
(...skipping 21 matching lines...) Expand all
46 // correct. 45 // correct.
47 virtual void AssertKeyedFactoriesBuilt() = 0; 46 virtual void AssertKeyedFactoriesBuilt() = 0;
48 47
49 // Returns the bookmarks::BookmarkModel factory for dependencies. 48 // Returns the bookmarks::BookmarkModel factory for dependencies.
50 virtual KeyedServiceBaseFactory* GetBookmarkModelFactory() = 0; 49 virtual KeyedServiceBaseFactory* GetBookmarkModelFactory() = 0;
51 50
52 // Returns an instance of bookmarks::BookmarkModel tied to |browser_state|. 51 // Returns an instance of bookmarks::BookmarkModel tied to |browser_state|.
53 virtual bookmarks::BookmarkModel* GetBookmarkModelForBrowserState( 52 virtual bookmarks::BookmarkModel* GetBookmarkModelForBrowserState(
54 ChromeBrowserState* browser_state) = 0; 53 ChromeBrowserState* browser_state) = 0;
55 54
56 // Returns the SigninManager factory for dependencies.
57 virtual KeyedServiceBaseFactory* GetSigninManagerFactory() = 0;
58
59 // Returns an instance of SigninManager tied to |browser_state|.
60 virtual SigninManager* GetSigninManagerForBrowserState(
61 ChromeBrowserState* browser_state) = 0;
62
63 // Returns the autofill::PersonalDataManager factory for dependencies. 55 // Returns the autofill::PersonalDataManager factory for dependencies.
64 virtual KeyedServiceBaseFactory* GetPersonalDataManagerFactory() = 0; 56 virtual KeyedServiceBaseFactory* GetPersonalDataManagerFactory() = 0;
65 57
66 // Returns an instance of autofill::PersonalDataManager tied to 58 // Returns an instance of autofill::PersonalDataManager tied to
67 // |browser_state|. 59 // |browser_state|.
68 virtual autofill::PersonalDataManager* GetPersonalDataManagerForBrowserState( 60 virtual autofill::PersonalDataManager* GetPersonalDataManagerForBrowserState(
69 ChromeBrowserState* browser_state) = 0; 61 ChromeBrowserState* browser_state) = 0;
70 62
71 // Returns the sync_driver::SyncService factory for dependencies. 63 // Returns the sync_driver::SyncService factory for dependencies.
72 virtual KeyedServiceBaseFactory* GetSyncServiceFactory() = 0; 64 virtual KeyedServiceBaseFactory* GetSyncServiceFactory() = 0;
73 65
74 // Returns an instance of sync_driver::SyncService tied to |browser_state|. 66 // Returns an instance of sync_driver::SyncService tied to |browser_state|.
75 virtual sync_driver::SyncService* GetSyncServiceForBrowserState( 67 virtual sync_driver::SyncService* GetSyncServiceForBrowserState(
76 ChromeBrowserState* browser_state) = 0; 68 ChromeBrowserState* browser_state) = 0;
77 69
78 private: 70 private:
79 DISALLOW_COPY_AND_ASSIGN(KeyedServiceProvider); 71 DISALLOW_COPY_AND_ASSIGN(KeyedServiceProvider);
80 }; 72 };
81 73
82 } // namespace ios 74 } // namespace ios
83 75
84 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_ 76 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698