| 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_;
|
|
|
|
|