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..193edb46528d837529dad147e39fb6c8bfab00f6 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. |
+ void AssertHasNoUploadData() 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 |
@@ -239,6 +245,8 @@ class URLFetcherCore |
// 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_; |