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

Unified Diff: net/url_request/url_fetcher_core.h

Issue 11843003: Add SetUploadDataStream method to URLFetcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & updated for UploadFileElementReader changes Created 7 years, 11 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
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 4796d2459e6b098c7b181dd932d253506761b527..072433b61d6f92507a0480d9f195ce2a55871006 100644
--- a/net/url_request/url_fetcher_core.h
+++ b/net/url_request/url_fetcher_core.h
@@ -63,6 +63,8 @@ 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);
void SetUploadData(const std::string& upload_content_type,
const std::string& upload_content);
void SetChunkedUpload(const std::string& upload_content_type);
@@ -338,7 +340,7 @@ class URLFetcherCore
bool was_fetched_via_proxy_;
HostPortPair socket_address_;
- std::string upload_content_; // HTTP POST payload
+ scoped_ptr<UploadDataStream> upload_content_; // HTTP POST payload
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

Powered by Google App Engine
This is Rietveld 408576698