Index: net/url_request/url_request.h |
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h |
index 3561a294624dccccc8eeb5d653a794eb13b10034..f4a1d875fcf9c610fe1965d4d80d837827c57828 100644 |
--- a/net/url_request/url_request.h |
+++ b/net/url_request/url_request.h |
@@ -312,6 +312,21 @@ class URLRequest : public base::NonThreadSafe { |
AppendFileRangeToUpload(file_path, 0, kuint64max, base::Time()); |
} |
+ // Indicates that the request body should be sent using Chunked-Transfer |
wtc
2011/01/20 00:29:47
Nit: Chunked-Transfer => chunked transfer
This co
willchan no longer on Chromium
2011/01/20 08:51:04
Push back if you feel I'm being unreasonable. I ju
Satish
2011/01/20 18:02:36
I'm happy to make this change. @wtc, @vandebo - ar
vandebo (ex-Chrome)
2011/01/20 20:48:45
Feel free to make any changes that you and Will ag
|
+ // encoding. This method may only be called before Start() is called. |
+ void EnableChunkedUpload(); |
+ |
+ // Appends the given bytes to the requests's upload data to be sent |
wtc
2011/01/20 00:29:47
Nit: requests's => request's
|
+ // immediately via chunked-transfer encoding. When all data has been sent, |
+ // call MarkEndOfChunks() to indicate the end of stream. |
wtc
2011/01/20 00:29:47
Nit: end of stream => end of upload data
|
+ // |
+ // This method may be called only after calling EnableChunkedUpload() and |
+ // Start(). |
+ void AppendChunkToUpload(const char* bytes, int bytes_len); |
+ |
+ // Indicates the end of a chunked-transfer encoded request body. |
+ void MarkEndOfChunks(); |
+ |
// Set the upload data directly. |
void set_upload(net::UploadData* upload); |