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

Unified Diff: net/url_request/url_request.h

Issue 10832003: Add const accessors to URLRequest and UploadData. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Forgot to check browser_tests Created 8 years, 5 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 | « net/base/upload_data_stream.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 a401c581dba94191579a5f701acd0d2a1edd3263..59b5a28ee024fcd4579eafc71a8c427bdf069018 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -413,7 +413,8 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
void set_upload(UploadData* upload);
// Get the upload data directly.
- UploadData* get_upload();
+ const UploadData* get_upload() const;
+ UploadData* get_upload_mutable();
// Returns true if the request has a non-empty message body to upload.
bool has_upload() const;
« no previous file with comments | « net/base/upload_data_stream.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698