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

Unified Diff: content/common/page_state_serialization.cc

Issue 1907443006: PlzNavigate: store POST data in the FrameNavigationEntry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/common/page_state_serialization.cc
diff --git a/content/common/page_state_serialization.cc b/content/common/page_state_serialization.cc
index b9670c2f244bc8920ac245e90f2b26cc2924c70d..d9bfb9a2f5ce28c006d9e0fdabe425fa57d2cc73 100644
--- a/content/common/page_state_serialization.cc
+++ b/content/common/page_state_serialization.cc
@@ -683,6 +683,8 @@ ExplodedHttpBody::ExplodedHttpBody()
is_null(true) {
}
+ExplodedHttpBody::ExplodedHttpBody(const ExplodedHttpBody& other) = default;
+
ExplodedHttpBody::~ExplodedHttpBody() {
}
@@ -748,6 +750,18 @@ bool EncodePageState(const ExplodedPageState& exploded, std::string* encoded) {
return true;
}
+bool GeneratePostData(const ExplodedHttpBody exploded,
Charlie Reis 2016/04/27 23:00:55 I'm not following why we need this. Was this code
clamy 2016/04/29 16:07:16 We need it because we have code to generate a WebH
+ ResourceRequestBody* http_body) {
+ if (exploded.is_null)
+ return false;
+
+ http_body->set_identifier(exploded.identifier);
+ for (auto element : exploded.elements)
+ http_body->AppendExplodedHTTPBodyElement(element);
+
+ return true;
+}
+
#if defined(OS_ANDROID)
bool DecodePageStateWithDeviceScaleFactorForTesting(
const std::string& encoded,

Powered by Google App Engine
This is Rietveld 408576698