| Index: content/browser/frame_host/render_frame_host_impl.cc
|
| diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
|
| index e06a88100ad1c8cc1f025ef97a2f56deacbe0e5a..6a0ec15484b4cf5718a26bd8fbb59cb3f59729c3 100644
|
| --- a/content/browser/frame_host/render_frame_host_impl.cc
|
| +++ b/content/browser/frame_host/render_frame_host_impl.cc
|
| @@ -1865,6 +1865,9 @@ void RenderFrameHostImpl::InvalidateMojoConnection() {
|
| #endif
|
|
|
| service_registry_.reset();
|
| +
|
| + // Disconnect with ImageDownloader Mojo service in RenderFrame.
|
| + image_downloader_dispatcher_.reset();
|
| }
|
|
|
| bool RenderFrameHostImpl::IsFocused() {
|
| @@ -1877,6 +1880,19 @@ bool RenderFrameHostImpl::IsFocused() {
|
| frame_tree_->GetFocusedFrame()->IsDescendantOf(frame_tree_node()));
|
| }
|
|
|
| +int RenderFrameHostImpl::DownloadImage(
|
| + const GURL& url,
|
| + bool is_favicon,
|
| + uint32_t max_bitmap_size,
|
| + bool bypass_cache,
|
| + const WebContents::ImageDownloadCallback& callback) {
|
| + if (!image_downloader_dispatcher_)
|
| + image_downloader_dispatcher_.reset(new ImageDownloaderDispatcher(this));
|
| +
|
| + return image_downloader_dispatcher_->StartDownload(
|
| + url, is_favicon, max_bitmap_size, bypass_cache, callback);
|
| +}
|
| +
|
| void RenderFrameHostImpl::UpdateCrossProcessIframeAccessibility(
|
| const std::map<int32, int>& node_to_frame_routing_id_map) {
|
| for (const auto& iter : node_to_frame_routing_id_map) {
|
|
|