5 #ifndef PPAPI_CPP_URL_REQUEST_INFO_H_
6 #define PPAPI_CPP_URL_REQUEST_INFO_H_
10 #include "ppapi/c/ppb_url_request_info.h"
50 bool SetProperty(PP_URLRequestProperty property,
const Var& value);
79 PP_Time expected_last_modified_time = 0);
102 int64_t start_offset,
104 PP_Time expected_last_modified_time = 0);
113 return SetProperty(PP_URLREQUESTPROPERTY_URL, url_string);
127 return SetProperty(PP_URLREQUESTPROPERTY_METHOD, method_string);
142 return SetProperty(PP_URLREQUESTPROPERTY_HEADERS, headers_string);
156 return SetProperty(PP_URLREQUESTPROPERTY_STREAMTOFILE, enable);
170 return SetProperty(PP_URLREQUESTPROPERTY_FOLLOWREDIRECTS, enable);
184 return SetProperty(PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS, enable);
197 return SetProperty(PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS, enable);
215 return SetProperty(PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL, url);
232 return SetProperty(PP_URLREQUESTPROPERTY_ALLOWCROSSORIGINREQUESTS, enable);
247 return SetProperty(PP_URLREQUESTPROPERTY_ALLOWCREDENTIALS, enable);
267 return SetProperty(PP_URLREQUESTPROPERTY_CUSTOMCONTENTTRANSFERENCODING,
268 content_transfer_encoding);
288 return SetProperty(PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD,
310 return SetProperty(PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD,
330 return SetProperty(PP_URLREQUESTPROPERTY_CUSTOMUSERAGENT, user_agent);
336 #endif // PPAPI_CPP_URL_REQUEST_INFO_H_
bool SetStreamToFile(bool enable)
Definition: url_request_info.h:155
Definition: file_ref.h:27
bool SetAllowCredentials(bool enable)
Definition: url_request_info.h:246
bool SetPrefetchBufferLowerThreshold(int32_t size)
Definition: url_request_info.h:309
bool SetFollowRedirects(bool enable)
Definition: url_request_info.h:169
URLRequestInfo()
Definition: url_request_info.h:26
bool AppendFileRangeToBody(const FileRef &file_ref, int64_t start_offset, int64_t length, PP_Time expected_last_modified_time=0)
bool SetHeaders(const Var &headers_string)
Definition: url_request_info.h:141
Definition: instance_handle.h:44
bool SetCustomReferrerURL(const Var &url)
Definition: url_request_info.h:214
bool SetAllowCrossOriginRequests(bool enable)
Definition: url_request_info.h:231
bool AppendFileToBody(const FileRef &file_ref, PP_Time expected_last_modified_time=0)
bool SetCustomContentTransferEncoding(const Var &content_transfer_encoding)
Definition: url_request_info.h:266
bool SetCustomUserAgent(const Var &user_agent)
Definition: url_request_info.h:329
bool SetRecordUploadProgress(bool enable)
Definition: url_request_info.h:196
bool SetPrefetchBufferUpperThreshold(int32_t size)
Definition: url_request_info.h:287
bool SetRecordDownloadProgress(bool enable)
Definition: url_request_info.h:183
URLRequestInfo provides an API for creating and manipulating URL requests.
Definition: url_request_info.h:22
bool SetMethod(const Var &method_string)
Definition: url_request_info.h:126
bool AppendDataToBody(const void *data, uint32_t len)
A generic type used for passing data types between the module and the page.
Definition: var.h:23
bool SetProperty(PP_URLRequestProperty property, const Var &value)
A reference counted module resource.
Definition: resource.h:20
bool SetURL(const Var &url_string)
Definition: url_request_info.h:112