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

Unified Diff: net/url_request/url_request.cc

Issue 10832003: Add const accessors to URLRequest and UploadData. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
« net/url_request/url_request.h ('K') | « net/url_request/url_request.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index eac80f4b8947d291115923a3cf1092cd2ec1408c..9c8c51868496437d3f682933e9c857f46a0df9a0 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -238,6 +238,10 @@ void URLRequest::set_upload(UploadData* upload) {
}
// Get the upload data directly.
+const UploadData* URLRequest::get_upload() const {
+ return upload_.get();
+}
+
UploadData* URLRequest::get_upload() {
return upload_.get();
}
« net/url_request/url_request.h ('K') | « net/url_request/url_request.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698