| Index: net/url_request/url_fetcher.h
|
| diff --git a/net/url_request/url_fetcher.h b/net/url_request/url_fetcher.h
|
| index 4aa07f399348c9dd0e5e390641a02e394498faf7..aebfcd4eaf2d16027829bdb56b0b8e4b9475e731 100644
|
| --- a/net/url_request/url_fetcher.h
|
| +++ b/net/url_request/url_fetcher.h
|
| @@ -124,12 +124,24 @@ class NET_EXPORT URLFetcher {
|
| static void SetIgnoreCertificateRequests(bool ignored);
|
|
|
| // Sets data only needed by POSTs. All callers making POST requests should
|
| - // call this before the request is started. |upload_content_type| is the MIME
|
| - // type of the content, while |upload_content| is the data to be sent (the
|
| - // Content-Length header value will be set to the length of this data).
|
| + // call one of the SetUpload* methods before the request is started.
|
| + // |upload_content_type| is the MIME type of the content, while
|
| + // |upload_content| is the data to be sent (the Content-Length header value
|
| + // will be set to the length of this data).
|
| virtual void SetUploadData(const std::string& upload_content_type,
|
| const std::string& upload_content) = 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
|
| + // |file_path| is the path to the file containing the data to be sent (the
|
| + // Content-Length header value will be set to the length of this file).
|
| + // |file_task_runner| will be used for all file operations.
|
| + virtual void SetUploadFilePath(
|
| + const std::string& upload_content_type,
|
| + const base::FilePath& file_path,
|
| + scoped_refptr<base::TaskRunner> file_task_runner) = 0;
|
| +
|
| // 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().
|
|
|