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

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: 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
Index: net/url_request/url_request.h
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index f405de209cc9b836317ab7f58f5a457d5a763d5f..2ecd2b0e095d1804279249c2f3ba4b6329011ea5 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -413,6 +413,7 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
void set_upload(UploadData* upload);
// Get the upload data directly.
+ const UploadData* get_upload() const;
gavinp 2012/07/27 20:28:56 Hrm, I wonder why this method name doesn't meet ou
vabr (Chromium) 2012/07/28 20:37:09 Well, I don't know, just copied the style from the
UploadData* get_upload();
gavinp 2012/07/27 20:28:56 get_upload_mutable() here, too?
vabr (Chromium) 2012/07/28 20:37:09 Done.
// Returns true if the request has a non-empty message body to upload.

Powered by Google App Engine
This is Rietveld 408576698