Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Unified Diff: net/url_request/url_fetcher_core.h

Issue 12224066: Fix UrlFetcher upload retry handling. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Explicitly forbid retries for chunked uploads Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/url_request/url_fetcher_core.cc » ('j') | net/url_request/url_fetcher_core.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 346a92998065ecd85437bd79fe28072f1e6a8f4e..96810e01068935baaa6c17b63e1c86e4fb580f63 100644
--- a/net/url_request/url_fetcher_core.h
+++ b/net/url_request/url_fetcher_core.h
@@ -62,7 +62,7 @@ class URLFetcherCore
// For POST requests, set |content_type| to the MIME type of the
// content and set |content| to the data to upload.
void SetUploadDataStream(const std::string& upload_content_type,
- scoped_ptr<UploadDataStream> upload_content);
+ scoped_ptr<UploadDataStream> upload_data_stream);
void SetUploadData(const std::string& upload_content_type,
const std::string& upload_content);
void SetChunkedUpload(const std::string& upload_content_type);
@@ -335,7 +335,9 @@ class URLFetcherCore
bool was_fetched_via_proxy_;
HostPortPair socket_address_;
- scoped_ptr<UploadDataStream> upload_content_; // HTTP POST payload
+ scoped_ptr<UploadDataStream> upload_data_stream_; // POST payload stream.
+ std::string upload_content_; // POST payload contents.
+
std::string upload_content_type_; // MIME type of POST payload
std::string referrer_; // HTTP Referer header value
bool is_chunked_upload_; // True if using chunked transfer encoding
« no previous file with comments | « no previous file | net/url_request/url_fetcher_core.cc » ('j') | net/url_request/url_fetcher_core.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698