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

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

Issue 1164043002: [iOS] Add accessor for ProfileOAuth2TokenServiceIOS instance and factory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | ios/public/provider/chrome/browser/keyed_service_provider.cc » ('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 ProfileOAuth2TokenService; 14 class ProfileOAuth2TokenService;
15 class ProfileOAuth2TokenServiceIOS;
15 class SigninManager; 16 class SigninManager;
16 17
17 namespace autofill { 18 namespace autofill {
18 class AutofillWebDataService; 19 class AutofillWebDataService;
19 class PersonalDataManager; 20 class PersonalDataManager;
20 } 21 }
21 22
22 namespace enhanced_bookmarks { 23 namespace enhanced_bookmarks {
23 class EnhancedBookmarkModel; 24 class EnhancedBookmarkModel;
24 } 25 }
(...skipping 14 matching lines...) Expand all
39 virtual ~KeyedServiceProvider(); 40 virtual ~KeyedServiceProvider();
40 41
41 // Returns the ProfileOAuth2TokenService factory for dependencies. 42 // Returns the ProfileOAuth2TokenService factory for dependencies.
42 virtual KeyedServiceBaseFactory* GetProfileOAuth2TokenServiceFactory(); 43 virtual KeyedServiceBaseFactory* GetProfileOAuth2TokenServiceFactory();
43 44
44 // Returns an instance of ProfileOAuth2TokenService tied to |browser_state|. 45 // Returns an instance of ProfileOAuth2TokenService tied to |browser_state|.
45 virtual ProfileOAuth2TokenService* 46 virtual ProfileOAuth2TokenService*
46 GetProfileOAuth2TokenServiceForBrowserState( 47 GetProfileOAuth2TokenServiceForBrowserState(
47 ChromeBrowserState* browser_state); 48 ChromeBrowserState* browser_state);
48 49
50 // Returns the ProfileOAuth2TokenServiceIOS factory for dependencies.
51 virtual KeyedServiceBaseFactory* GetProfileOAuth2TokenServiceIOSFactory();
52
53 // Returns an instance of ProfileOAuth2TokenServiceIOS tied to
54 // |browser_state|.
55 virtual ProfileOAuth2TokenServiceIOS*
56 GetProfileOAuth2TokenServiceIOSForBrowserState(
57 ChromeBrowserState* browser_state);
58
49 // Returns the SigninManager factory for dependencies. 59 // Returns the SigninManager factory for dependencies.
50 virtual KeyedServiceBaseFactory* GetSigninManagerFactory(); 60 virtual KeyedServiceBaseFactory* GetSigninManagerFactory();
51 61
52 // Returns an instance of SigninManager tied to |browser_state|. 62 // Returns an instance of SigninManager tied to |browser_state|.
53 virtual SigninManager* GetSigninManagerForBrowserState( 63 virtual SigninManager* GetSigninManagerForBrowserState(
54 ChromeBrowserState* browser_state); 64 ChromeBrowserState* browser_state);
55 65
56 // Returns the autofill::AutofillWebDataService factory for dependencies. 66 // Returns the autofill::AutofillWebDataService factory for dependencies.
57 virtual KeyedServiceBaseFactory* GetAutofillWebDataFactory(); 67 virtual KeyedServiceBaseFactory* GetAutofillWebDataFactory();
58 68
(...skipping 27 matching lines...) Expand all
86 virtual sync_driver::SyncService* GetSyncServiceForBrowserState( 96 virtual sync_driver::SyncService* GetSyncServiceForBrowserState(
87 ChromeBrowserState* browser_state); 97 ChromeBrowserState* browser_state);
88 98
89 private: 99 private:
90 DISALLOW_COPY_AND_ASSIGN(KeyedServiceProvider); 100 DISALLOW_COPY_AND_ASSIGN(KeyedServiceProvider);
91 }; 101 };
92 102
93 } // namespace ios 103 } // namespace ios
94 104
95 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_ 105 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | ios/public/provider/chrome/browser/keyed_service_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698