| Index: net/url_request/url_fetcher_core.h
|
| diff --git a/net/url_request/url_fetcher_core.h b/net/url_request/url_fetcher_core.h
|
| index 6bf449f5671ea4abeb666b1aaf867114941cf1f9..4289d4fe8d55eb3e46a90831a447ee96d9c8113a 100644
|
| --- a/net/url_request/url_fetcher_core.h
|
| +++ b/net/url_request/url_fetcher_core.h
|
| @@ -68,6 +68,9 @@ class URLFetcherCore
|
| uint64 range_offset,
|
| uint64 range_length,
|
| scoped_refptr<base::TaskRunner> file_task_runner);
|
| + void SetUploadStreamFactory(
|
| + const std::string& upload_content_type,
|
| + const URLFetcher::CreateUploadStreamCallback& callback);
|
| void SetChunkedUpload(const std::string& upload_content_type);
|
| // Adds a block of data to be uploaded in a POST body. This can only be
|
| // called after Start().
|
| @@ -203,6 +206,9 @@ class URLFetcherCore
|
| void InformDelegateDownloadProgressInDelegateThread(int64 current,
|
| int64 total);
|
|
|
| + // Check if any upload data is set or not.
|
| + bool IsUploadDataSet() const;
|
| +
|
| URLFetcher* fetcher_; // Corresponding fetcher object
|
| GURL original_url_; // The URL we were asked to fetch
|
| GURL url_; // The URL we eventually wound up at
|
| @@ -232,13 +238,14 @@ class URLFetcherCore
|
| bool was_fetched_via_proxy_;
|
| HostPortPair socket_address_;
|
|
|
| - bool upload_content_set_; // SetUploadData has been called
|
| std::string upload_content_; // HTTP POST payload
|
| base::FilePath upload_file_path_; // Path to file containing POST payload
|
| uint64 upload_range_offset_; // Offset from the beginning of the file
|
| // to be uploaded.
|
| uint64 upload_range_length_; // The length of the part of file to be
|
| // uploaded.
|
| + URLFetcher::CreateUploadStreamCallback
|
| + upload_stream_factory_; // Callback to create HTTP POST payload.
|
| std::string upload_content_type_; // MIME type of POST payload
|
| std::string referrer_; // HTTP Referer header value and policy
|
| URLRequest::ReferrerPolicy referrer_policy_;
|
|
|