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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 1085783002: Replace image_messages.h with Mojo service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to master@{#333882} Created 5 years, 6 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
Index: content/browser/frame_host/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index db9e4493e137e5dca9c28f643d55c04c80d46800..2678f2a56e5ae6cf8181b6efb02529f37083d4d4 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -17,6 +17,7 @@
#include "base/strings/string_number_conversions.h" // Temporary
#include "base/time/time.h"
#include "content/browser/accessibility/browser_accessibility_manager.h"
+#include "content/browser/image_downloader/image_downloader_dispatcher.h"
#include "content/browser/site_instance_impl.h"
#include "content/common/accessibility_mode_enums.h"
#include "content/common/content_export.h"
@@ -444,6 +445,13 @@ class CONTENT_EXPORT RenderFrameHostImpl
// Temporary for http://crbug.com/369661.
std::string CommitCountString();
+ // Download image API called by web_contents.
+ int DownloadImage(const GURL& url,
+ bool is_favicon,
+ uint32_t max_bitmap_size,
+ bool bypass_cache,
+ const WebContents::ImageDownloadCallback& callback);
+
protected:
friend class RenderFrameHostFactory;
@@ -736,6 +744,9 @@ class CONTENT_EXPORT RenderFrameHostImpl
// Temporary for http://crbug.com/369661
int commit_count_ = 0;
+ // Dispatcher to do IPC with ImageDownloader Mojo service in RenderFrame.
+ scoped_ptr<ImageDownloaderDispatcher> image_downloader_dispatcher_;
+
// NOTE: This must be the last member.
base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698