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

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

Issue 1156733003: Move PageState to FrameNavigationEntry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 02af2af9ce95b13763d2eb2496c90f3b351ffb01..b2def39a9e48bdaab3b0cad1593bdb4c8a2a4b08 100644
--- a/content/browser/frame_host/frame_navigation_entry.cc
+++ b/content/browser/frame_host/frame_navigation_entry.cc
@@ -25,16 +25,18 @@ FrameNavigationEntry::~FrameNavigationEntry() {
FrameNavigationEntry* FrameNavigationEntry::Clone() const {
FrameNavigationEntry* copy = new FrameNavigationEntry(frame_tree_node_id_);
- copy->UpdateEntry(site_instance_.get(), url_, referrer_);
+ copy->UpdateEntry(site_instance_.get(), url_, referrer_, page_state_);
return copy;
}
void FrameNavigationEntry::UpdateEntry(SiteInstanceImpl* site_instance,
const GURL& url,
- const Referrer& referrer) {
+ const Referrer& referrer,
+ const PageState& page_state) {
site_instance_ = site_instance;
url_ = url;
referrer_ = referrer;
+ page_state_ = page_state;
}
} // namespace content
« 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