Chromium Code Reviews| 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 #import <Foundation/Foundation.h> | 9 #import <Foundation/Foundation.h> |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 73 virtual void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 73 virtual void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 74 // Returns an UpdatableResourceProvider instance. | 74 // Returns an UpdatableResourceProvider instance. |
| 75 virtual UpdatableResourceProvider* GetUpdatableResourceProvider(); | 75 virtual UpdatableResourceProvider* GetUpdatableResourceProvider(); |
| 76 // Returns an infobar view conforming to the InfoBarViewProtocol. The returned | 76 // Returns an infobar view conforming to the InfoBarViewProtocol. The returned |
| 77 // object is retained. | 77 // object is retained. |
| 78 virtual InfoBarViewPlaceholder CreateInfoBarView( | 78 virtual InfoBarViewPlaceholder CreateInfoBarView( |
| 79 CGRect frame, | 79 CGRect frame, |
| 80 InfoBarViewDelegate* delegate) NS_RETURNS_RETAINED; | 80 InfoBarViewDelegate* delegate) NS_RETURNS_RETAINED; |
| 81 // Returns an instance of a signin resources provider. | 81 // Returns an instance of a signin resources provider. |
| 82 virtual SigninResourcesProvider* GetSigninResourcesProvider(); | 82 virtual SigninResourcesProvider* GetSigninResourcesProvider(); |
| 83 // Overrides the current instance of Chrome identity service. | |
| 84 virtual void SetChromeIdentityService( | |
|
rohitrao (ping after 24h)
2016/08/29 14:16:36
Perhaps calls this SetChromeIdentityServiceForTest
bzanotti
2016/08/29 14:31:47
Done.
| |
| 85 std::unique_ptr<ChromeIdentityService> service); | |
| 83 // Returns an instance of a Chrome identity service. | 86 // Returns an instance of a Chrome identity service. |
| 84 virtual ChromeIdentityService* GetChromeIdentityService(); | 87 virtual ChromeIdentityService* GetChromeIdentityService(); |
| 85 // Returns an instance of a LiveTabContextProvider. | 88 // Returns an instance of a LiveTabContextProvider. |
| 86 virtual LiveTabContextProvider* GetLiveTabContextProvider(); | 89 virtual LiveTabContextProvider* GetLiveTabContextProvider(); |
| 87 virtual GeolocationUpdaterProvider* GetGeolocationUpdaterProvider(); | 90 virtual GeolocationUpdaterProvider* GetGeolocationUpdaterProvider(); |
| 88 // Returns "enabled", "disabled", or "default". | 91 // Returns "enabled", "disabled", or "default". |
| 89 virtual std::string DataReductionProxyAvailability(); | 92 virtual std::string DataReductionProxyAvailability(); |
| 90 // Returns the distribution brand code. | 93 // Returns the distribution brand code. |
| 91 virtual std::string GetDistributionBrandCode(); | 94 virtual std::string GetDistributionBrandCode(); |
| 92 // Sets the alpha property of an UIView with an animation. | 95 // Sets the alpha property of an UIView with an animation. |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 112 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback); | 115 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback); |
| 113 | 116 |
| 114 // Returns the SyncedWindowDelegatesGetter implementation. | 117 // Returns the SyncedWindowDelegatesGetter implementation. |
| 115 virtual std::unique_ptr<browser_sync::SyncedWindowDelegatesGetter> | 118 virtual std::unique_ptr<browser_sync::SyncedWindowDelegatesGetter> |
| 116 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state); | 119 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state); |
| 117 }; | 120 }; |
| 118 | 121 |
| 119 } // namespace ios | 122 } // namespace ios |
| 120 | 123 |
| 121 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ | 124 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ |
| OLD | NEW |