8 #ifndef PPAPI_C_PPB_URL_LOADER_H_
9 #define PPAPI_C_PPB_URL_LOADER_H_
11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_completion_callback.h"
13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/c/pp_stdint.h"
18 #define PPB_URLLOADER_INTERFACE_1_0 "PPB_URLLoader;1.0"
19 #define PPB_URLLOADER_INTERFACE PPB_URLLOADER_INTERFACE_1_0
130 int64_t* total_bytes_to_be_sent);
151 int64_t* bytes_received,
152 int64_t* total_bytes_to_be_received);
183 int32_t bytes_to_read,
int32_t(* FinishStreamingToFile)(PP_Resource loader, struct PP_CompletionCallback callback)
void(* Close)(PP_Resource loader)
int32_t(* ReadResponseBody)(PP_Resource loader, void *buffer, int32_t bytes_to_read, struct PP_CompletionCallback callback)
PP_Resource(* Create)(PP_Instance instance)
PP_Bool(* IsURLLoader)(PP_Resource resource)
int32_t(* Open)(PP_Resource loader, PP_Resource request_info, struct PP_CompletionCallback callback)
PP_Resource(* GetResponseInfo)(PP_Resource loader)
PP_Bool(* GetUploadProgress)(PP_Resource loader, int64_t *bytes_sent, int64_t *total_bytes_to_be_sent)
PP_Bool(* GetDownloadProgress)(PP_Resource loader, int64_t *bytes_received, int64_t *total_bytes_to_be_received)
int32_t(* FollowRedirect)(PP_Resource loader, struct PP_CompletionCallback callback)