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

Unified Diff: chrome/browser/prerender/prerender_contents.cc

Issue 11411180: move favicon download code from chrome/ into content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix order Created 8 years 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
« no previous file with comments | « chrome/browser/prerender/prerender_contents.h ('k') | chrome/browser/prerender/prerender_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_contents.cc
diff --git a/chrome/browser/prerender/prerender_contents.cc b/chrome/browser/prerender/prerender_contents.cc
index 3b38659345fdfc8e320449538b995bee547bbf0f..54cfdb199c0aacd06f477ae7ee8500577ae6fcb8 100644
--- a/chrome/browser/prerender/prerender_contents.cc
+++ b/chrome/browser/prerender/prerender_contents.cc
@@ -20,7 +20,6 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/common/chrome_notification_types.h"
-#include "chrome/common/icon_messages.h"
#include "chrome/common/prerender_messages.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/browser_child_process_host.h"
@@ -32,6 +31,7 @@
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_delegate.h"
#include "content/public/browser/web_contents_view.h"
+#include "content/public/common/favicon_url.h"
#include "ui/gfx/rect.h"
using content::DownloadItem;
@@ -295,7 +295,6 @@ void PrerenderContents::StartPrerendering(
tab_contents_delegate_.reset(new TabContentsDelegateImpl(this));
new_contents->SetDelegate(tab_contents_delegate_.get());
-
// Set the size of the prerender WebContents.
prerender_contents_->web_contents()->GetView()->SizeContents(size_);
@@ -484,13 +483,13 @@ WebContents* PrerenderContents::CreateWebContents(
profile_, NULL, MSG_ROUTING_NONE, NULL, session_storage_namespace_map);
}
-void PrerenderContents::OnUpdateFaviconURL(
+void PrerenderContents::DidUpdateFaviconURL(
int32 page_id,
- const std::vector<FaviconURL>& urls) {
+ const std::vector<content::FaviconURL>& urls) {
VLOG(1) << "PrerenderContents::OnUpdateFaviconURL" << icon_url_;
- for (std::vector<FaviconURL>::const_iterator it = urls.begin();
+ for (std::vector<content::FaviconURL>::const_iterator it = urls.begin();
it != urls.end(); ++it) {
- if (it->icon_type == FaviconURL::FAVICON) {
+ if (it->icon_type == content::FaviconURL::FAVICON) {
icon_url_ = it->icon_url;
VLOG(1) << icon_url_;
return;
« no previous file with comments | « chrome/browser/prerender/prerender_contents.h ('k') | chrome/browser/prerender/prerender_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698