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

Unified Diff: ios/web/web_state/web_state_impl.h

Issue 2693043003: Revert of Use IOSImageDataFetcherWrapper for favicon (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/web_state/DEPS ('k') | ios/web/web_state/web_state_impl.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/web_state_impl.h
diff --git a/ios/web/web_state/web_state_impl.h b/ios/web/web_state/web_state_impl.h
index a9469900f2c1afe142e04037bfdf8f12b5092dab..905e516d33276ffd2ab39554a3ce883725bd7a2d 100644
--- a/ios/web/web_state/web_state_impl.h
+++ b/ios/web/web_state/web_state_impl.h
@@ -43,6 +43,7 @@
struct FaviconURL;
struct LoadCommittedDetails;
class NavigationManager;
+class ImageDataFetcher;
class WebInterstitialImpl;
class WebStateFacadeDelegate;
class WebStatePolicyDecider;
@@ -226,6 +227,11 @@
const std::string& command_prefix) override;
void RemoveScriptCommandCallback(const std::string& command_prefix) override;
id<CRWWebViewProxy> GetWebViewProxy() const override;
+ int DownloadImage(const GURL& url,
+ bool is_favicon,
+ uint32_t max_bitmap_size,
+ bool bypass_cache,
+ const ImageDownloadCallback& callback) override;
service_manager::InterfaceRegistry* GetMojoInterfaceRegistry() override;
base::WeakPtr<WebState> AsWeakPtr() override;
@@ -349,6 +355,9 @@
// Mojo interface registry for this WebState.
std::unique_ptr<service_manager::InterfaceRegistry> mojo_interface_registry_;
+ // Image Fetcher used to images.
+ std::unique_ptr<ImageDataFetcher> image_fetcher_;
+
DISALLOW_COPY_AND_ASSIGN(WebStateImpl);
};
« no previous file with comments | « ios/web/web_state/DEPS ('k') | ios/web/web_state/web_state_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698