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

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

Issue 2294343002: Update FrameNavigationEntry members when setting PageState. (Closed)
Patch Set: Remove NOTREACHED, as unit tests are failing. Created 4 years, 4 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 26671f7df448e60a5c8fc0cf5bd8aa7927f11cb5..bf78bef31f702fbaab573adefe8f1bf4ea08f3ec 100644
--- a/content/browser/frame_host/frame_navigation_entry.cc
+++ b/content/browser/frame_host/frame_navigation_entry.cc
@@ -83,6 +83,17 @@ void FrameNavigationEntry::set_document_sequence_number(
document_sequence_number_ = document_sequence_number;
}
+void FrameNavigationEntry::SetPageState(const PageState& page_state) {
+ page_state_ = page_state;
+
+ ExplodedPageState exploded_state;
+ if (!DecodePageState(page_state_.ToEncodedData(), &exploded_state))
+ return;
+
+ item_sequence_number_ = exploded_state.top.item_sequence_number;
+ document_sequence_number_ = exploded_state.top.document_sequence_number;
+}
+
scoped_refptr<ResourceRequestBodyImpl> FrameNavigationEntry::GetPostData()
const {
DCHECK(SiteIsolationPolicy::UseSubframeNavigationEntries());
« 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