| Index: content/common/page_state_serialization.h
|
| diff --git a/content/common/page_state_serialization.h b/content/common/page_state_serialization.h
|
| index 24d81981ef84bbba89f624f01e58163565e154a8..69a4a3c86bfbc8c0113c3654d71e2c2b05512534 100644
|
| --- a/content/common/page_state_serialization.h
|
| +++ b/content/common/page_state_serialization.h
|
| @@ -21,6 +21,8 @@
|
|
|
| namespace content {
|
|
|
| +class ResourceRequestBody;
|
| +
|
| struct CONTENT_EXPORT ExplodedHttpBodyElement {
|
| blink::WebHTTPBody::Element::Type type;
|
| std::string data;
|
| @@ -88,6 +90,15 @@ 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,
|
|
|