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

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

Issue 2456013003: [ios] Adds the LogoVendor protocol. (Closed)
Patch Set: Fix GN. Created 4 years, 1 month 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 29 matching lines...) Expand all
40 namespace sync_sessions { 40 namespace sync_sessions {
41 class SyncedWindowDelegatesGetter; 41 class SyncedWindowDelegatesGetter;
42 } 42 }
43 43
44 namespace user_prefs { 44 namespace user_prefs {
45 class PrefRegistrySyncable; 45 class PrefRegistrySyncable;
46 } 46 }
47 47
48 @protocol AppRatingPrompt; 48 @protocol AppRatingPrompt;
49 @protocol InfoBarViewProtocol; 49 @protocol InfoBarViewProtocol;
50 @protocol LogoVendor;
50 @protocol TextFieldStyling; 51 @protocol TextFieldStyling;
51 @class UITextField; 52 @class UITextField;
52 @class UIView; 53 @class UIView;
54 @protocol UrlLoader;
53 typedef UIView<InfoBarViewProtocol>* InfoBarViewPlaceholder; 55 typedef UIView<InfoBarViewProtocol>* InfoBarViewPlaceholder;
54 56
55 namespace ios { 57 namespace ios {
56 58
57 class ChromeBrowserProvider; 59 class ChromeBrowserProvider;
58 class ChromeBrowserState; 60 class ChromeBrowserState;
59 class ChromeIdentityService; 61 class ChromeIdentityService;
60 class GeolocationUpdaterProvider; 62 class GeolocationUpdaterProvider;
61 class SigninErrorProvider; 63 class SigninErrorProvider;
62 class SigninResourcesProvider; 64 class SigninResourcesProvider;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // metrics_services_manager_client.h for details on |on_update_callback|. 146 // metrics_services_manager_client.h for details on |on_update_callback|.
145 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback); 147 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback);
146 148
147 // Returns the list of available voice search languages. 149 // Returns the list of available voice search languages.
148 // TODO(rohitrao): Remove once callers are going through VoiceSearchProvider. 150 // TODO(rohitrao): Remove once callers are going through VoiceSearchProvider.
149 virtual NSArray* GetAvailableVoiceSearchLanguages() const; 151 virtual NSArray* GetAvailableVoiceSearchLanguages() const;
150 152
151 // Returns an instance of the voice search provider, if one exists. 153 // Returns an instance of the voice search provider, if one exists.
152 virtual VoiceSearchProvider* GetVoiceSearchProvider() const; 154 virtual VoiceSearchProvider* GetVoiceSearchProvider() const;
153 155
156 // Creates and returns an object that can fetch and vend search engine logos.
157 // The caller assumes ownership of the returned object.
158 virtual id<LogoVendor> CreateLogoVendor(
159 ios::ChromeBrowserState* browser_state,
160 id<UrlLoader> loader) const NS_RETURNS_RETAINED;
161
154 // Returns the SyncedWindowDelegatesGetter implementation. 162 // Returns the SyncedWindowDelegatesGetter implementation.
155 virtual std::unique_ptr<sync_sessions::SyncedWindowDelegatesGetter> 163 virtual std::unique_ptr<sync_sessions::SyncedWindowDelegatesGetter>
156 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state); 164 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state);
157 165
158 // TODO(rohitrao): This is a temporary method, used to prevent the tree from 166 // TODO(rohitrao): This is a temporary method, used to prevent the tree from
159 // breaking due to duplicate prefs registration. 167 // breaking due to duplicate prefs registration.
160 virtual bool ShouldEmbedderRegisterVoiceSearchPrefs() const; 168 virtual bool ShouldEmbedderRegisterVoiceSearchPrefs() const;
161 }; 169 };
162 170
163 } // namespace ios 171 } // namespace ios
164 172
165 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 173 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698