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

Unified Diff: content/common/resource_request_body.h

Issue 1907443006: PlzNavigate: store POST data in the FrameNavigationEntry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments 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
Index: content/common/resource_request_body.h
diff --git a/content/common/resource_request_body.h b/content/common/resource_request_body.h
index 9c87e570661c746f1edcf2e30dc72bc0aa969060..69e3d5d8228444d4997e6eef941a8dff505b963e 100644
--- a/content/common/resource_request_body.h
+++ b/content/common/resource_request_body.h
@@ -22,6 +22,8 @@ class FilePath;
namespace content {
+struct ExplodedHttpBodyElement;
+
// A struct used to represent upload data. The data field is populated by
// WebURLLoader from the data given as WebHTTPBody.
class CONTENT_EXPORT ResourceRequestBody
@@ -32,6 +34,8 @@ class CONTENT_EXPORT ResourceRequestBody
ResourceRequestBody();
+ void AppendExplodedHTTPBodyElement(const ExplodedHttpBodyElement& element);
+
void AppendBytes(const char* bytes, int bytes_len);
void AppendFileRange(const base::FilePath& file_path,
uint64_t offset,
@@ -55,6 +59,9 @@ class CONTENT_EXPORT ResourceRequestBody
void set_identifier(int64_t id) { identifier_ = id; }
int64_t identifier() const { return identifier_; }
+ // Returns a copy of this ResourceRequestBody.
+ scoped_refptr<ResourceRequestBody> MakeCopy();
+
private:
friend class base::RefCountedThreadSafe<ResourceRequestBody>;
~ResourceRequestBody() override;

Powered by Google App Engine
This is Rietveld 408576698