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

Unified Diff: net/url_request/url_request.h

Issue 11439008: net: Change argument of URLRequest::set_upload from UploadData to UploadDataStream (Closed) Base URL: http://git.chromium.org/chromium/src.git@chunk
Patch Set: Fix android Created 8 years 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 | « net/url_request/url_fetcher_core.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.h
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index b4a44c6b6f05bd2fb01991ad948c7786d40f323e..4081e7532b9f027445a9bd178886a1bf940f0c11 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -91,7 +91,6 @@ class HostPortPair;
class IOBuffer;
class SSLCertRequestInfo;
class SSLInfo;
-class UploadData;
class UploadDataStream;
class URLRequestContext;
class URLRequestJob;
@@ -412,10 +411,10 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
int bytes_len,
bool is_last_chunk);
- // Set the upload data directly.
- void set_upload(UploadData* upload);
+ // Sets the upload data.
+ void set_upload(scoped_ptr<UploadDataStream> upload);
- // Get the upload data directly.
+ // Gets the upload data.
const UploadDataStream* get_upload() const;
// Returns true if the request has a non-empty message body to upload.
@@ -756,7 +755,6 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
BoundNetLog net_log_;
scoped_refptr<URLRequestJob> job_;
- scoped_refptr<UploadData> upload_;
scoped_ptr<UploadDataStream> upload_data_stream_;
std::vector<GURL> url_chain_;
GURL first_party_for_cookies_;
« no previous file with comments | « net/url_request/url_fetcher_core.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698