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

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

Issue 2274163002: Allow ChromeIdentityService in ChromeBrowserProvider to be overriden. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename method used for testing Created 4 years, 3 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/chrome_browser_provider.mm » ('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 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
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 // Sets the current instance of Chrome identity service. Used for testing.
84 virtual void SetChromeIdentityServiceForTesting(
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
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_
OLDNEW
« no previous file with comments | « no previous file | ios/public/provider/chrome/browser/chrome_browser_provider.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698