| Index: content/browser/web_contents/web_contents_impl.cc
|
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
| index 0f1eefd165f0c9df6d4d1c05e5fbaea81f3031cf..8979ebf249bd50b9338dd7b1eb48e436517fdbc1 100644
|
| --- a/content/browser/web_contents/web_contents_impl.cc
|
| +++ b/content/browser/web_contents/web_contents_impl.cc
|
| @@ -42,7 +42,7 @@
|
| #include "content/browser/webui/web_ui_impl.h"
|
| #include "content/common/browser_plugin/browser_plugin_constants.h"
|
| #include "content/common/browser_plugin/browser_plugin_messages.h"
|
| -#include "content/common/icon_messages.h"
|
| +#include "content/common/image_messages.h"
|
| #include "content/common/ssl_status_serialization.h"
|
| #include "content/common/view_messages.h"
|
| #include "content/port/browser/render_view_host_delegate_view.h"
|
| @@ -156,12 +156,12 @@ const char kDotGoogleDotCom[] = ".google.com";
|
| static int StartDownload(content::RenderViewHost* rvh,
|
| const GURL& url,
|
| int image_size) {
|
| - static int g_next_favicon_download_id = 0;
|
| - rvh->Send(new IconMsg_DownloadFavicon(rvh->GetRoutingID(),
|
| - ++g_next_favicon_download_id,
|
| - url,
|
| - image_size));
|
| - return g_next_favicon_download_id;
|
| + static int g_next_image_download_id = 0;
|
| + rvh->Send(new ImageMsg_DownloadImage(rvh->GetRoutingID(),
|
| + ++g_next_image_download_id,
|
| + url,
|
| + image_size));
|
| + return g_next_image_download_id;
|
| }
|
|
|
| ViewMsg_Navigate_Type::Value GetNavigationType(
|
| @@ -709,8 +709,8 @@ bool WebContentsImpl::OnMessageReceived(RenderViewHost* render_view_host,
|
| OnBrowserPluginMessage(message))
|
| IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_Attach,
|
| OnBrowserPluginMessage(message))
|
| - IPC_MESSAGE_HANDLER(IconHostMsg_DidDownloadFavicon, OnDidDownloadFavicon)
|
| - IPC_MESSAGE_HANDLER(IconHostMsg_UpdateFaviconURL, OnUpdateFaviconURL)
|
| + IPC_MESSAGE_HANDLER(ImageHostMsg_DidDownloadImage, OnDidDownloadImage)
|
| + IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL)
|
| #if defined(OS_ANDROID)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_FindMatchRects_Reply,
|
| OnFindMatchRectsReply)
|
| @@ -2042,11 +2042,11 @@ void WebContentsImpl::DidEndColorChooser(int color_chooser_id) {
|
| color_chooser_ = NULL;
|
| }
|
|
|
| -int WebContentsImpl::DownloadFavicon(const GURL& url, int image_size,
|
| - const FaviconDownloadCallback& callback) {
|
| +int WebContentsImpl::DownloadImage(const GURL& url, int image_size,
|
| + const ImageDownloadCallback& callback) {
|
| RenderViewHost* host = GetRenderViewHost();
|
| int id = StartDownload(host, url, image_size);
|
| - favicon_download_map_[id] = callback;
|
| + image_download_map_[id] = callback;
|
| return id;
|
| }
|
|
|
| @@ -2458,13 +2458,13 @@ void WebContentsImpl::OnBrowserPluginMessage(const IPC::Message& message) {
|
| browser_plugin_embedder_->OnMessageReceived(message);
|
| }
|
|
|
| -void WebContentsImpl::OnDidDownloadFavicon(
|
| +void WebContentsImpl::OnDidDownloadImage(
|
| int id,
|
| const GURL& image_url,
|
| int requested_size,
|
| const std::vector<SkBitmap>& bitmaps) {
|
| - FaviconDownloadMap::iterator iter = favicon_download_map_.find(id);
|
| - if (iter == favicon_download_map_.end()) {
|
| + ImageDownloadMap::iterator iter = image_download_map_.find(id);
|
| + if (iter == image_download_map_.end()) {
|
| // Currently WebContents notifies us of ANY downloads so that it is
|
| // possible to get here.
|
| return;
|
| @@ -2472,7 +2472,7 @@ void WebContentsImpl::OnDidDownloadFavicon(
|
| if (!iter->second.is_null()) {
|
| iter->second.Run(id, image_url, requested_size, bitmaps);
|
| }
|
| - favicon_download_map_.erase(id);
|
| + image_download_map_.erase(id);
|
| }
|
|
|
| void WebContentsImpl::OnUpdateFaviconURL(
|
|
|