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

Side by Side Diff: chrome/browser/prerender/prerender_contents.cc

Issue 11416179: Move chrome/common/favicon_url.(cc|h) into content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/prerender/prerender_contents.h" 5 #include "chrome/browser/prerender/prerender_contents.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 // TODO(ajwong): Remove the temporary map once prerendering is aware of 492 // TODO(ajwong): Remove the temporary map once prerendering is aware of
493 // multiple session storage namespaces per tab. 493 // multiple session storage namespaces per tab.
494 content::SessionStorageNamespaceMap session_storage_namespace_map; 494 content::SessionStorageNamespaceMap session_storage_namespace_map;
495 session_storage_namespace_map[""] = session_storage_namespace; 495 session_storage_namespace_map[""] = session_storage_namespace;
496 return WebContents::CreateWithSessionStorage( 496 return WebContents::CreateWithSessionStorage(
497 profile_, NULL, MSG_ROUTING_NONE, NULL, session_storage_namespace_map); 497 profile_, NULL, MSG_ROUTING_NONE, NULL, session_storage_namespace_map);
498 } 498 }
499 499
500 void PrerenderContents::OnUpdateFaviconURL( 500 void PrerenderContents::OnUpdateFaviconURL(
501 int32 page_id, 501 int32 page_id,
502 const std::vector<FaviconURL>& urls) { 502 const std::vector<content::FaviconURL>& urls) {
503 VLOG(1) << "PrerenderContents::OnUpdateFaviconURL" << icon_url_; 503 VLOG(1) << "PrerenderContents::OnUpdateFaviconURL" << icon_url_;
504 for (std::vector<FaviconURL>::const_iterator it = urls.begin(); 504 for (std::vector<content::FaviconURL>::const_iterator it = urls.begin();
505 it != urls.end(); ++it) { 505 it != urls.end(); ++it) {
506 if (it->icon_type == FaviconURL::FAVICON) { 506 if (it->icon_type == content::FaviconURL::FAVICON) {
507 icon_url_ = it->icon_url; 507 icon_url_ = it->icon_url;
508 VLOG(1) << icon_url_; 508 VLOG(1) << icon_url_;
509 return; 509 return;
510 } 510 }
511 } 511 }
512 } 512 }
513 513
514 bool PrerenderContents::AddAliasURL(const GURL& url) { 514 bool PrerenderContents::AddAliasURL(const GURL& url) {
515 const bool http = url.SchemeIs(chrome::kHttpScheme); 515 const bool http = url.SchemeIs(chrome::kHttpScheme);
516 const bool https = url.SchemeIs(chrome::kHttpsScheme); 516 const bool https = url.SchemeIs(chrome::kHttpsScheme);
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 bool PrerenderContents::IsCrossSiteNavigationPending() const { 708 bool PrerenderContents::IsCrossSiteNavigationPending() const {
709 if (!prerender_contents_.get() || !prerender_contents_->web_contents()) 709 if (!prerender_contents_.get() || !prerender_contents_->web_contents())
710 return false; 710 return false;
711 const WebContents* web_contents = prerender_contents_->web_contents(); 711 const WebContents* web_contents = prerender_contents_->web_contents();
712 return (web_contents->GetSiteInstance() != 712 return (web_contents->GetSiteInstance() !=
713 web_contents->GetPendingSiteInstance()); 713 web_contents->GetPendingSiteInstance());
714 } 714 }
715 715
716 716
717 } // namespace prerender 717 } // namespace prerender
OLDNEW
« 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