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

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

Issue 2593993002: Remove ChromeBrowserProvider::GetLiveTabContextProvider() method. (Closed)
Patch Set: Rebase and fix "gn check". Created 3 years, 11 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 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 typedef UIView<InfoBarViewProtocol>* InfoBarViewPlaceholder; 49 typedef UIView<InfoBarViewProtocol>* InfoBarViewPlaceholder;
50 50
51 namespace ios { 51 namespace ios {
52 52
53 class ChromeBrowserProvider; 53 class ChromeBrowserProvider;
54 class ChromeBrowserState; 54 class ChromeBrowserState;
55 class ChromeIdentityService; 55 class ChromeIdentityService;
56 class GeolocationUpdaterProvider; 56 class GeolocationUpdaterProvider;
57 class SigninErrorProvider; 57 class SigninErrorProvider;
58 class SigninResourcesProvider; 58 class SigninResourcesProvider;
59 class LiveTabContextProvider;
60 59
61 // Setter and getter for the provider. The provider should be set early, before 60 // Setter and getter for the provider. The provider should be set early, before
62 // any browser code is called. 61 // any browser code is called.
63 void SetChromeBrowserProvider(ChromeBrowserProvider* provider); 62 void SetChromeBrowserProvider(ChromeBrowserProvider* provider);
64 ChromeBrowserProvider* GetChromeBrowserProvider(); 63 ChromeBrowserProvider* GetChromeBrowserProvider();
65 64
66 // Factory function for the embedder specific provider. This function must be 65 // Factory function for the embedder specific provider. This function must be
67 // implemented by the embedder and will be selected via linking (i.e. by the 66 // implemented by the embedder and will be selected via linking (i.e. by the
68 // build system). Should only be used in the application startup code, not by 67 // build system). Should only be used in the application startup code, not by
69 // the tests (as they may use a different provider). 68 // the tests (as they may use a different provider).
(...skipping 14 matching lines...) Expand all
84 virtual void AssertBrowserContextKeyedFactoriesBuilt(); 83 virtual void AssertBrowserContextKeyedFactoriesBuilt();
85 // Returns an instance of a signing error provider. 84 // Returns an instance of a signing error provider.
86 virtual SigninErrorProvider* GetSigninErrorProvider(); 85 virtual SigninErrorProvider* GetSigninErrorProvider();
87 // Returns an instance of a signin resources provider. 86 // Returns an instance of a signin resources provider.
88 virtual SigninResourcesProvider* GetSigninResourcesProvider(); 87 virtual SigninResourcesProvider* GetSigninResourcesProvider();
89 // Sets the current instance of Chrome identity service. Used for testing. 88 // Sets the current instance of Chrome identity service. Used for testing.
90 virtual void SetChromeIdentityServiceForTesting( 89 virtual void SetChromeIdentityServiceForTesting(
91 std::unique_ptr<ChromeIdentityService> service); 90 std::unique_ptr<ChromeIdentityService> service);
92 // Returns an instance of a Chrome identity service. 91 // Returns an instance of a Chrome identity service.
93 virtual ChromeIdentityService* GetChromeIdentityService(); 92 virtual ChromeIdentityService* GetChromeIdentityService();
94 // Returns an instance of a LiveTabContextProvider. 93 // Returns an instance of a GeolocationUpdaterProvider.
95 virtual LiveTabContextProvider* GetLiveTabContextProvider();
96 virtual GeolocationUpdaterProvider* GetGeolocationUpdaterProvider(); 94 virtual GeolocationUpdaterProvider* GetGeolocationUpdaterProvider();
97 // Returns "enabled", "disabled", or "default". 95 // Returns "enabled", "disabled", or "default".
98 virtual std::string DataReductionProxyAvailability(); 96 virtual std::string DataReductionProxyAvailability();
99 // Returns the distribution brand code. 97 // Returns the distribution brand code.
100 virtual std::string GetDistributionBrandCode(); 98 virtual std::string GetDistributionBrandCode();
101 // Sets the alpha property of an UIView with an animation. 99 // Sets the alpha property of an UIView with an animation.
102 virtual void SetUIViewAlphaWithAnimation(UIView* view, float alpha); 100 virtual void SetUIViewAlphaWithAnimation(UIView* view, float alpha);
103 // Returns an instance of a CardUnmaskPromptView used to unmask Wallet cards. 101 // Returns an instance of a CardUnmaskPromptView used to unmask Wallet cards.
104 // The view is responsible for its own lifetime. 102 // The view is responsible for its own lifetime.
105 virtual autofill::CardUnmaskPromptView* CreateCardUnmaskPromptView( 103 virtual autofill::CardUnmaskPromptView* CreateCardUnmaskPromptView(
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // not dismiss them. 172 // not dismiss them.
175 virtual void LogIfModalViewsArePresented() const; 173 virtual void LogIfModalViewsArePresented() const;
176 174
177 // Returns an instance of the spotlight provider. 175 // Returns an instance of the spotlight provider.
178 virtual SpotlightProvider* GetSpotlightProvider() const; 176 virtual SpotlightProvider* GetSpotlightProvider() const;
179 }; 177 };
180 178
181 } // namespace ios 179 } // namespace ios
182 180
183 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 181 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/tab_switcher/BUILD.gn ('k') | ios/public/provider/chrome/browser/chrome_browser_provider.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698