OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CHROME_BROWSER_PROVIDER_H_ | 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ |
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ | 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ |
7 | 7 |
8 #include <CoreGraphics/CoreGraphics.h> | 8 #include <CoreGraphics/CoreGraphics.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 #include <string> | 10 #include <string> |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // ios_chrome_browser target. | 72 // ios_chrome_browser target. |
73 class ChromeBrowserProvider { | 73 class ChromeBrowserProvider { |
74 public: | 74 public: |
75 ChromeBrowserProvider(); | 75 ChromeBrowserProvider(); |
76 virtual ~ChromeBrowserProvider(); | 76 virtual ~ChromeBrowserProvider(); |
77 | 77 |
78 // Asserts all iOS-specific |BrowserContextKeyedServiceFactory| are built. | 78 // Asserts all iOS-specific |BrowserContextKeyedServiceFactory| are built. |
79 virtual void AssertBrowserContextKeyedFactoriesBuilt(); | 79 virtual void AssertBrowserContextKeyedFactoriesBuilt(); |
80 // Registers all prefs that will be used via a PrefService attached to a | 80 // Registers all prefs that will be used via a PrefService attached to a |
81 // Profile. | 81 // Profile. |
82 virtual void RegisterProfilePrefs( | 82 virtual void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
83 user_prefs::PrefRegistrySyncable* registry); | |
84 // Returns an instance of profile OAuth2 token service provider. | 83 // Returns an instance of profile OAuth2 token service provider. |
85 virtual ProfileOAuth2TokenServiceIOSProvider* | 84 virtual ProfileOAuth2TokenServiceIOSProvider* |
86 GetProfileOAuth2TokenServiceIOSProvider(); | 85 GetProfileOAuth2TokenServiceIOSProvider(); |
87 // Returns an UpdatableResourceProvider instance. | 86 // Returns an UpdatableResourceProvider instance. |
88 virtual UpdatableResourceProvider* GetUpdatableResourceProvider(); | 87 virtual UpdatableResourceProvider* GetUpdatableResourceProvider(); |
89 // Returns a ChromeBrowserStateManager instance. | 88 // Creates a new ChromeBrowserStateManager instance. |
90 virtual ChromeBrowserStateManager* GetChromeBrowserStateManager(); | 89 virtual scoped_ptr<ChromeBrowserStateManager> |
| 90 CreateChromeBrowserStateManager(); |
91 // Returns an infobar view conforming to the InfoBarViewProtocol. The returned | 91 // Returns an infobar view conforming to the InfoBarViewProtocol. The returned |
92 // object is retained. | 92 // object is retained. |
93 virtual InfoBarViewPlaceholder CreateInfoBarView( | 93 virtual InfoBarViewPlaceholder CreateInfoBarView( |
94 CGRect frame, | 94 CGRect frame, |
95 InfoBarViewDelegate* delegate); | 95 InfoBarViewDelegate* delegate); |
96 // Returns an instance of a signin resources provider. | 96 // Returns an instance of a signin resources provider. |
97 virtual SigninResourcesProvider* GetSigninResourcesProvider(); | 97 virtual SigninResourcesProvider* GetSigninResourcesProvider(); |
98 // Returns an instance of a Chrome identity service. | 98 // Returns an instance of a Chrome identity service. |
99 virtual ChromeIdentityService* GetChromeIdentityService(); | 99 virtual ChromeIdentityService* GetChromeIdentityService(); |
100 // Returns an instance of a string provider. | 100 // Returns an instance of a string provider. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state); | 137 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state); |
138 | 138 |
139 // Gets the URLRequestContextGetter used by the SafeBrowsing service. Returns | 139 // Gets the URLRequestContextGetter used by the SafeBrowsing service. Returns |
140 // null if there is no SafeBrowsing service. | 140 // null if there is no SafeBrowsing service. |
141 virtual net::URLRequestContextGetter* GetSafeBrowsingURLRequestContext(); | 141 virtual net::URLRequestContextGetter* GetSafeBrowsingURLRequestContext(); |
142 }; | 142 }; |
143 | 143 |
144 } // namespace ios | 144 } // namespace ios |
145 | 145 |
146 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ | 146 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ |
OLD | NEW |