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

Unified Diff: content/browser/frame_host/frame_navigation_entry.cc

Issue 2368183004: Move redirect_chain from NavigationEntry to FrameNavigationEntry. (Closed)
Patch Set: Nit Created 4 years, 2 months 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
Index: content/browser/frame_host/frame_navigation_entry.cc
diff --git a/content/browser/frame_host/frame_navigation_entry.cc b/content/browser/frame_host/frame_navigation_entry.cc
index bf78bef31f702fbaab573adefe8f1bf4ea08f3ec..5ebb6c29047d87e5ead0d369657015af217d22db 100644
--- a/content/browser/frame_host/frame_navigation_entry.cc
+++ b/content/browser/frame_host/frame_navigation_entry.cc
@@ -43,7 +43,8 @@ FrameNavigationEntry* FrameNavigationEntry::Clone() const {
// Omit any fields cleared at commit time.
copy->UpdateEntry(frame_unique_name_, item_sequence_number_,
document_sequence_number_, site_instance_.get(), nullptr,
- url_, referrer_, page_state_, method_, post_id_);
+ url_, referrer_, redirect_chain_, page_state_, method_,
+ post_id_);
return copy;
}
@@ -55,6 +56,7 @@ void FrameNavigationEntry::UpdateEntry(
scoped_refptr<SiteInstanceImpl> source_site_instance,
const GURL& url,
const Referrer& referrer,
+ const std::vector<GURL>& redirect_chain,
const PageState& page_state,
const std::string& method,
int64_t post_id) {
@@ -63,6 +65,7 @@ void FrameNavigationEntry::UpdateEntry(
document_sequence_number_ = document_sequence_number;
site_instance_ = site_instance;
source_site_instance_ = std::move(source_site_instance);
+ redirect_chain_ = redirect_chain;
url_ = url;
referrer_ = referrer;
page_state_ = page_state;
« no previous file with comments | « content/browser/frame_host/frame_navigation_entry.h ('k') | content/browser/frame_host/navigation_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698