Chromium Code Reviews| Index: net/url_request/url_fetcher.h |
| diff --git a/net/url_request/url_fetcher.h b/net/url_request/url_fetcher.h |
| index 5dcaedde0a9d7945a10bf9f2c40d0a086a8960d1..18c031bcdb0f3c97f650308aada39f7a451b7260 100644 |
| --- a/net/url_request/url_fetcher.h |
| +++ b/net/url_request/url_fetcher.h |
| @@ -149,6 +149,15 @@ class NET_EXPORT URLFetcher { |
| uint64 range_length, |
| scoped_refptr<base::TaskRunner> file_task_runner) = 0; |
| + // Sets data only needed by POSTs. All callers making POST requests should |
| + // call one of the SetUpload* methods before the request is started. |
| + // |upload_content_type| is the MIME type of the content, while |
| + // |upload_stream| is the data to be sent (the Content-Length header value |
| + // will be set to the length of this data). |
| + virtual void SetUploadStream( |
| + const std::string& upload_content_type, |
| + scoped_ptr<net::UploadDataStream> upload_stream) = 0; |
|
mmenke
2014/12/18 15:38:46
Why is this needed? This is incompatible with all
|
| + |
| // 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(). |