16 template <>
const char* interface_name<PPB_URLRequestInfo_1_0>() {
17 return PPB_URLREQUESTINFO_INTERFACE_1_0;
23 if (!has_interface<PPB_URLRequestInfo_1_0>())
26 get_interface<PPB_URLRequestInfo_1_0>()->Create(instance.
pp_instance()));
35 if (!has_interface<PPB_URLRequestInfo_1_0>())
37 return PP_ToBool(get_interface<PPB_URLRequestInfo_1_0>()->
SetProperty(
42 if (!has_interface<PPB_URLRequestInfo_1_0>())
49 PP_Time expected_last_modified_time) {
50 if (!has_interface<PPB_URLRequestInfo_1_0>())
58 expected_last_modified_time));
65 PP_Time expected_last_modified_time) {
66 if (!has_interface<PPB_URLRequestInfo_1_0>())
73 expected_last_modified_time));
void PassRefFromConstructor(PP_Resource resource)
bool AppendFileRangeToBody(const FileRef &file_ref, int64_t start_offset, int64_t length, PP_Time expected_last_modified_time=0)
const PP_Var & pp_var() const
bool AppendFileToBody(const FileRef &file_ref, PP_Time expected_last_modified_time=0)
URLRequestInfo provides an API for creating and manipulating URL requests.
PP_Resource pp_resource() const
bool AppendDataToBody(const void *data, uint32_t len)
A generic type used for passing data types between the module and the page.
PP_Instance pp_instance() const
bool SetProperty(PP_URLRequestProperty property, const Var &value)
A reference counted module resource.