Chromium Code Reviews| 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..a546a86fa76cd918769f2cf61a7c7da3534cf54d 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. |
| + // Use add_upload_data_chunk() to give the data chunks before or after calling |
|
vandebo (ex-Chrome)
2011/01/14 05:53:44
You may want to note that this must be called befo
Satish
2011/01/14 18:09:29
Done.
|
| + // Start(). |
| + void set_chunked_upload(const std::string& upload_content_type); |
| + |
| + // Adds the given bytes to a requests's POST data transmitted using chunked |
| + // transfer encoding. |
| + // This method should be called ONLY after calling Start(). |
| + void AppendChunkToUpload(const std::string& data); |
| + 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); |