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

Unified Diff: content/common/page_state_serialization.h

Issue 2012913002: Deduping conversions between ResourceRequestBody/WebHTTPBody/ExplodedHttpBody. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-rid-of-exploded-http-body
Patch Set: Calling ResourceRequestBody::AppendFileRange with optional_body_file_path. Created 4 years, 7 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
« no previous file with comments | « content/child/web_url_request_util.cc ('k') | content/common/page_state_serialization.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/page_state_serialization.h
diff --git a/content/common/page_state_serialization.h b/content/common/page_state_serialization.h
index e0c2ecf2f01afb0aa8a97de348f9c7666bfa36e8..ad6149e360725cae6f3cc3778cfe647fbd201852 100644
--- a/content/common/page_state_serialization.h
+++ b/content/common/page_state_serialization.h
@@ -22,14 +22,10 @@
namespace content {
-using ExplodedHttpBodyElement = ResourceRequestBody::Element;
-
struct CONTENT_EXPORT ExplodedHttpBody {
base::NullableString16 http_content_type;
- std::vector<ExplodedHttpBodyElement> elements;
- int64_t identifier;
+ scoped_refptr<ResourceRequestBody> request_body;
bool contains_passwords;
- bool is_null;
ExplodedHttpBody();
~ExplodedHttpBody();
@@ -76,15 +72,6 @@ CONTENT_EXPORT bool DecodePageState(const std::string& encoded,
CONTENT_EXPORT bool EncodePageState(const ExplodedPageState& exploded,
std::string* encoded);
-// This method converts the ExplodedHttpBody into a ResourceRequestBody format.
-// If |exploded| is not null, initializes |http_body| with the data from
-// |exploded|. Returns false otherwise.
-// PlzNavigate: This is used in the browser process when converting the POST
-// data stored in a PageState into a ResourceRequestBody that can be used by
-// the network stack.
-bool GeneratePostData(const ExplodedHttpBody& exploded,
- ResourceRequestBody* http_body);
-
#if defined(OS_ANDROID)
CONTENT_EXPORT bool DecodePageStateWithDeviceScaleFactorForTesting(
const std::string& encoded,
« no previous file with comments | « content/child/web_url_request_util.cc ('k') | content/common/page_state_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698