Index: chrome/common/net/url_fetcher.h |
diff --git a/chrome/common/net/url_fetcher.h b/chrome/common/net/url_fetcher.h |
index 733fd92f28d083ed2d9aae698bc9237bb5051a50..417702b890d5611cf3657e80c5e47f51f0a14b58 100644 |
--- a/chrome/common/net/url_fetcher.h |
+++ b/chrome/common/net/url_fetcher.h |
@@ -132,6 +132,17 @@ class URLFetcher { |
void set_upload_data(const std::string& upload_content_type, |
const std::string& upload_content); |
+ // Indicates that the POST data is sent via chunked transfer encoding. |
+ // This may only be called before calling Start(). |
+ // Use AppendChunkToUpload() to give the data chunks after calling Start(). |
+ void set_chunked_upload(const std::string& upload_content_type); |
+ |
+ // Adds the given bytes to a requests's POST data transmitted using chunked |
wtc
2011/01/20 00:29:47
Nit: requests's => request's
|
+ // transfer encoding. |
+ // This method should be called ONLY after calling Start(). |
+ void AppendChunkToUpload(const std::string& data); |
+ void MarkEndOfChunks(); |
wtc
2011/01/20 00:29:47
Document the MarkEndOfChunks method.
|
+ |
// Set one or more load flags as defined in net/base/load_flags.h. Must be |
// called before the request is started. |
void set_load_flags(int load_flags); |