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

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

Issue 2609363003: Remove ChromeBrowserProvider::GetFaviconForURL(). (Closed)
Patch Set: 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>
11 11
12 #include <memory> 12 #include <memory>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/callback_forward.h" 16 #include "base/callback_forward.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "components/favicon_base/favicon_callback.h"
19 18
20 class AppDistributionProvider; 19 class AppDistributionProvider;
21 class BrandedImageProvider; 20 class BrandedImageProvider;
22 class GURL;
23 class OmahaServiceProvider; 21 class OmahaServiceProvider;
24 class SpotlightProvider; 22 class SpotlightProvider;
25 class UserFeedbackProvider; 23 class UserFeedbackProvider;
26 class VoiceSearchProvider; 24 class VoiceSearchProvider;
27 25
28 namespace web { 26 namespace web {
29 class WebState; 27 class WebState;
30 } 28 }
31 29
32 namespace sync_sessions { 30 namespace sync_sessions {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // Returns an instance of a Chrome identity service. 82 // Returns an instance of a Chrome identity service.
85 virtual ChromeIdentityService* GetChromeIdentityService(); 83 virtual ChromeIdentityService* GetChromeIdentityService();
86 // Returns an instance of a GeolocationUpdaterProvider. 84 // Returns an instance of a GeolocationUpdaterProvider.
87 virtual GeolocationUpdaterProvider* GetGeolocationUpdaterProvider(); 85 virtual GeolocationUpdaterProvider* GetGeolocationUpdaterProvider();
88 // Returns "enabled", "disabled", or "default". 86 // Returns "enabled", "disabled", or "default".
89 virtual std::string DataReductionProxyAvailability(); 87 virtual std::string DataReductionProxyAvailability();
90 // Returns the distribution brand code. 88 // Returns the distribution brand code.
91 virtual std::string GetDistributionBrandCode(); 89 virtual std::string GetDistributionBrandCode();
92 // Returns risk data used in Wallet requests. 90 // Returns risk data used in Wallet requests.
93 virtual std::string GetRiskData(); 91 virtual std::string GetRiskData();
94 // Get the favicon for |page_url| and run |callback| with result when loaded.
95 // Note. |callback| is always run asynchronously.
96 virtual void GetFaviconForURL(
97 ChromeBrowserState* browser_state,
98 const GURL& page_url,
99 const std::vector<int>& desired_sizes_in_pixel,
100 const favicon_base::FaviconResultsCallback& callback) const;
101 // Creates and returns a new styled text field with the given |frame|. 92 // Creates and returns a new styled text field with the given |frame|.
102 virtual UITextField<TextFieldStyling>* CreateStyledTextField( 93 virtual UITextField<TextFieldStyling>* CreateStyledTextField(
103 CGRect frame) const NS_RETURNS_RETAINED; 94 CGRect frame) const NS_RETURNS_RETAINED;
104 // Creates and returns an app ratings prompt object. Can return nil if app 95 // Creates and returns an app ratings prompt object. Can return nil if app
105 // ratings prompts are not supported by the provider. 96 // ratings prompts are not supported by the provider.
106 virtual id<AppRatingPrompt> CreateAppRatingPrompt() const NS_RETURNS_RETAINED; 97 virtual id<AppRatingPrompt> CreateAppRatingPrompt() const NS_RETURNS_RETAINED;
107 98
108 // Initializes the cast service. Should be called soon after the given 99 // Initializes the cast service. Should be called soon after the given
109 // |main_tab_model| is created. 100 // |main_tab_model| is created.
110 // TODO(rohitrao): Change from |id| to |TabModel*| once TabModel is moved into 101 // TODO(rohitrao): Change from |id| to |TabModel*| once TabModel is moved into
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // not dismiss them. 148 // not dismiss them.
158 virtual void LogIfModalViewsArePresented() const; 149 virtual void LogIfModalViewsArePresented() const;
159 150
160 // Returns an instance of the spotlight provider. 151 // Returns an instance of the spotlight provider.
161 virtual SpotlightProvider* GetSpotlightProvider() const; 152 virtual SpotlightProvider* GetSpotlightProvider() const;
162 }; 153 };
163 154
164 } // namespace ios 155 } // namespace ios
165 156
166 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 157 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698