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

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: Created 5 years, 8 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 283be24ef7bcbd431ae8bec34dc477a1823255b4..fd29107664acd5c84a76c93384a6afb997d8b336 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -15,6 +15,7 @@
#include "base/strings/string16.h"
#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"
@@ -428,6 +429,13 @@ class CONTENT_EXPORT RenderFrameHostImpl
// addition, its associated RenderWidgetHost has to be focused.
bool IsFocused();
+ // 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;
@@ -696,6 +704,9 @@ class CONTENT_EXPORT RenderFrameHostImpl
// Context shared for each PermissionService instance created for this RFH.
scoped_ptr<PermissionServiceContext> permission_service_context_;
+ // Dispatcher to do IPC with ImageDownloader Mojo service in Renderer side.
nasko 2015/04/15 20:57:22 nit: "Renderer" isn't very clear. Is it the render
leonhsl(Using Gerrit) 2015/04/17 06:14:34 Done. "Renderer side" ---> "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