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; |