Index: chrome/common/net/url_fetcher.h |
diff --git a/chrome/common/net/url_fetcher.h b/chrome/common/net/url_fetcher.h |
index 19edbb9db3484ec9b1546da7df84f95f55477a32..20f6ea771f25e6b82b5d79196b3b743c9728f2ac 100644 |
--- a/chrome/common/net/url_fetcher.h |
+++ b/chrome/common/net/url_fetcher.h |
@@ -132,6 +132,21 @@ 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 request's POST data transmitted using chunked |
+ // transfer encoding. |
+ // This method should be called ONLY after calling Start(). |
+ void AppendChunkToUpload(const std::string& data); |
+ |
+ // Signals the end of a chunked transfer encoded data stream. This method |
+ // should be called ONLY after calling Start(), set_chunked_upload() and |
+ // typically one or more calls to AppendChunkToUpload. |
+ void MarkEndOfChunks(); |
+ |
// 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); |