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

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

Issue 2437003003: Access SigninErrorProvider through ChromeBrowserProvider. (Closed)
Patch Set: Created 4 years, 2 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 @class UITextField; 51 @class UITextField;
52 @class UIView; 52 @class UIView;
53 typedef UIView<InfoBarViewProtocol>* InfoBarViewPlaceholder; 53 typedef UIView<InfoBarViewProtocol>* InfoBarViewPlaceholder;
54 54
55 namespace ios { 55 namespace ios {
56 56
57 class ChromeBrowserProvider; 57 class ChromeBrowserProvider;
58 class ChromeBrowserState; 58 class ChromeBrowserState;
59 class ChromeIdentityService; 59 class ChromeIdentityService;
60 class GeolocationUpdaterProvider; 60 class GeolocationUpdaterProvider;
61 class SigninErrorProvider;
61 class SigninResourcesProvider; 62 class SigninResourcesProvider;
62 class LiveTabContextProvider; 63 class LiveTabContextProvider;
63 class UpdatableResourceProvider; 64 class UpdatableResourceProvider;
64 65
65 // Setter and getter for the provider. The provider should be set early, before 66 // Setter and getter for the provider. The provider should be set early, before
66 // any browser code is called. 67 // any browser code is called.
67 void SetChromeBrowserProvider(ChromeBrowserProvider* provider); 68 void SetChromeBrowserProvider(ChromeBrowserProvider* provider);
68 ChromeBrowserProvider* GetChromeBrowserProvider(); 69 ChromeBrowserProvider* GetChromeBrowserProvider();
69 70
70 // A class that allows embedding iOS-specific functionality in the 71 // A class that allows embedding iOS-specific functionality in the
71 // ios_chrome_browser target. 72 // ios_chrome_browser target.
72 class ChromeBrowserProvider { 73 class ChromeBrowserProvider {
73 public: 74 public:
74 ChromeBrowserProvider(); 75 ChromeBrowserProvider();
75 virtual ~ChromeBrowserProvider(); 76 virtual ~ChromeBrowserProvider();
76 77
77 // Asserts all iOS-specific |BrowserContextKeyedServiceFactory| are built. 78 // Asserts all iOS-specific |BrowserContextKeyedServiceFactory| are built.
78 virtual void AssertBrowserContextKeyedFactoriesBuilt(); 79 virtual void AssertBrowserContextKeyedFactoriesBuilt();
79 // 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
80 // Profile. 81 // Profile.
81 virtual void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 82 virtual void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
82 // Returns an UpdatableResourceProvider instance. 83 // Returns an UpdatableResourceProvider instance.
83 virtual UpdatableResourceProvider* GetUpdatableResourceProvider(); 84 virtual UpdatableResourceProvider* GetUpdatableResourceProvider();
84 // Returns an infobar view conforming to the InfoBarViewProtocol. The returned 85 // Returns an infobar view conforming to the InfoBarViewProtocol. The returned
85 // object is retained. 86 // object is retained.
86 virtual InfoBarViewPlaceholder CreateInfoBarView( 87 virtual InfoBarViewPlaceholder CreateInfoBarView(
87 CGRect frame, 88 CGRect frame,
88 InfoBarViewDelegate* delegate) NS_RETURNS_RETAINED; 89 InfoBarViewDelegate* delegate) NS_RETURNS_RETAINED;
90 // Returns an instance of a signing error provider.
91 virtual SigninErrorProvider* GetSigninErrorProvider();
89 // Returns an instance of a signin resources provider. 92 // Returns an instance of a signin resources provider.
90 virtual SigninResourcesProvider* GetSigninResourcesProvider(); 93 virtual SigninResourcesProvider* GetSigninResourcesProvider();
91 // Sets the current instance of Chrome identity service. Used for testing. 94 // Sets the current instance of Chrome identity service. Used for testing.
92 virtual void SetChromeIdentityServiceForTesting( 95 virtual void SetChromeIdentityServiceForTesting(
93 std::unique_ptr<ChromeIdentityService> service); 96 std::unique_ptr<ChromeIdentityService> service);
94 // Returns an instance of a Chrome identity service. 97 // Returns an instance of a Chrome identity service.
95 virtual ChromeIdentityService* GetChromeIdentityService(); 98 virtual ChromeIdentityService* GetChromeIdentityService();
96 // Returns an instance of a LiveTabContextProvider. 99 // Returns an instance of a LiveTabContextProvider.
97 virtual LiveTabContextProvider* GetLiveTabContextProvider(); 100 virtual LiveTabContextProvider* GetLiveTabContextProvider();
98 virtual GeolocationUpdaterProvider* GetGeolocationUpdaterProvider(); 101 virtual GeolocationUpdaterProvider* GetGeolocationUpdaterProvider();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 virtual VoiceSearchProvider* GetVoiceSearchProvider() const; 152 virtual VoiceSearchProvider* GetVoiceSearchProvider() const;
150 153
151 // Returns the SyncedWindowDelegatesGetter implementation. 154 // Returns the SyncedWindowDelegatesGetter implementation.
152 virtual std::unique_ptr<sync_sessions::SyncedWindowDelegatesGetter> 155 virtual std::unique_ptr<sync_sessions::SyncedWindowDelegatesGetter>
153 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state); 156 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state);
154 }; 157 };
155 158
156 } // namespace ios 159 } // namespace ios
157 160
158 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 161 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/signin/signin_util.mm ('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