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

Side by Side Diff: content/browser/web_contents/navigation_controller_impl.cc

Issue 11275062: Move content\browser\web_contents to content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 1 month 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 "content/browser/web_contents/navigation_controller_impl.h" 5 #include "content/browser/web_contents/navigation_controller_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/string_number_conversions.h" // Temporary 10 #include "base/string_number_conversions.h" // Temporary
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 NavigationEntryImpl* entry = entries_[entry_index].get(); 994 NavigationEntryImpl* entry = entries_[entry_index].get();
995 995
996 // The URL may have changed due to redirects. 996 // The URL may have changed due to redirects.
997 entry->SetURL(params.url); 997 entry->SetURL(params.url);
998 if (entry->update_virtual_url_with_url()) 998 if (entry->update_virtual_url_with_url())
999 UpdateVirtualURLToURL(entry, params.url); 999 UpdateVirtualURLToURL(entry, params.url);
1000 1000
1001 // The redirected to page should not inherit the favicon from the previous 1001 // The redirected to page should not inherit the favicon from the previous
1002 // page. 1002 // page.
1003 if (PageTransitionIsRedirect(params.transition)) 1003 if (PageTransitionIsRedirect(params.transition))
1004 entry->GetFavicon() = content::FaviconStatus(); 1004 entry->GetFavicon() = FaviconStatus();
1005 1005
1006 // The site instance will normally be the same except during session restore, 1006 // The site instance will normally be the same except during session restore,
1007 // when no site instance will be assigned. 1007 // when no site instance will be assigned.
1008 DCHECK(entry->site_instance() == NULL || 1008 DCHECK(entry->site_instance() == NULL ||
1009 entry->site_instance() == web_contents_->GetSiteInstance()); 1009 entry->site_instance() == web_contents_->GetSiteInstance());
1010 entry->set_site_instance( 1010 entry->set_site_instance(
1011 static_cast<SiteInstanceImpl*>(web_contents_->GetSiteInstance())); 1011 static_cast<SiteInstanceImpl*>(web_contents_->GetSiteInstance()));
1012 1012
1013 entry->SetHasPostData(params.is_post); 1013 entry->SetHasPostData(params.is_post);
1014 entry->SetPostID(params.post_id); 1014 entry->SetPostID(params.post_id);
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
1609 } 1609 }
1610 } 1610 }
1611 } 1611 }
1612 1612
1613 void NavigationControllerImpl::SetGetTimestampCallbackForTest( 1613 void NavigationControllerImpl::SetGetTimestampCallbackForTest(
1614 const base::Callback<base::Time()>& get_timestamp_callback) { 1614 const base::Callback<base::Time()>& get_timestamp_callback) {
1615 get_timestamp_callback_ = get_timestamp_callback; 1615 get_timestamp_callback_ = get_timestamp_callback;
1616 } 1616 }
1617 1617
1618 } // namespace content 1618 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/debug_urls.cc ('k') | content/browser/web_contents/navigation_controller_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698