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

Unified Diff: ppapi/cpp/url_request_info.h

Issue 6882125: Pepper: Enable custom content-transfer-encoding header to be set in URL requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 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: ppapi/cpp/url_request_info.h
diff --git a/ppapi/cpp/url_request_info.h b/ppapi/cpp/url_request_info.h
index 9d38c6928d782ca678aafb40a208ac068685f419..cce4e91507f8e02dd7f05a542c27a3a1501f6572 100644
--- a/ppapi/cpp/url_request_info.h
+++ b/ppapi/cpp/url_request_info.h
@@ -54,9 +54,9 @@ class URLRequestInfo : public Resource {
bool SetRecordUploadProgress(bool enable) {
return SetProperty(PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS, enable);
}
- // To use the default referrer, set url_string to an Undefined Var.
- bool SetCustomReferrerURL(const Var& url_string) {
- return SetProperty(PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL, url_string);
+ // To use the default referrer, set url to an Undefined Var.
+ bool SetCustomReferrerURL(const Var& url) {
+ return SetProperty(PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL, url);
}
bool SetAllowCrossOriginRequests(bool enable) {
return SetProperty(PP_URLREQUESTPROPERTY_ALLOWCROSSORIGINREQUESTS, enable);
@@ -64,6 +64,12 @@ class URLRequestInfo : public Resource {
bool SetAllowCredentials(bool enable) {
return SetProperty(PP_URLREQUESTPROPERTY_ALLOWCREDENTIALS, enable);
}
+ // To use the default content transfer encoding, set content_transfer_encoding
+ // to an Undefined Var.
+ bool SetCustomContentTransferEncoding(const Var& content_transfer_encoding) {
+ return SetProperty(PP_URLREQUESTPROPERTY_CUSTOMCONTENTTRANSFERENCODING,
+ content_transfer_encoding);
+ }
};
} // namespace pp

Powered by Google App Engine
This is Rietveld 408576698