Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
ppb_url_loader.h
Go to the documentation of this file.
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file.
4  */
5 
6 /* From ppb_url_loader.idl modified Thu Oct 20 13:57:04 2016. */
7 
8 #ifndef PPAPI_C_PPB_URL_LOADER_H_
9 #define PPAPI_C_PPB_URL_LOADER_H_
10 
11 #include "ppapi/c/pp_bool.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"
17 
18 #define PPB_URLLOADER_INTERFACE_1_0 "PPB_URLLoader;1.0"
19 #define PPB_URLLOADER_INTERFACE PPB_URLLOADER_INTERFACE_1_0
20 
92  int32_t (*Open)(PP_Resource loader,
93  PP_Resource request_info,
94  struct PP_CompletionCallback callback);
109  int32_t (*FollowRedirect)(PP_Resource loader,
110  struct PP_CompletionCallback callback);
129  int64_t* bytes_sent,
130  int64_t* total_bytes_to_be_sent);
151  int64_t* bytes_received,
152  int64_t* total_bytes_to_be_received);
181  int32_t (*ReadResponseBody)(PP_Resource loader,
182  void* buffer,
183  int32_t bytes_to_read,
184  struct PP_CompletionCallback callback);
203  struct PP_CompletionCallback callback);
217  void (*Close)(PP_Resource loader);
218 };
219 
220 typedef struct PPB_URLLoader_1_0 PPB_URLLoader;
225 #endif /* PPAPI_C_PPB_URL_LOADER_H_ */
226 
int32_t(* FinishStreamingToFile)(PP_Resource loader, struct PP_CompletionCallback callback)
Definition: ppb_url_loader.h:202
void(* Close)(PP_Resource loader)
Definition: ppb_url_loader.h:217
Definition: ppb_url_loader.h:51
int32_t(* ReadResponseBody)(PP_Resource loader, void *buffer, int32_t bytes_to_read, struct PP_CompletionCallback callback)
Definition: ppb_url_loader.h:181
PP_Resource(* Create)(PP_Instance instance)
Definition: ppb_url_loader.h:64
int32_t PP_Resource
Definition: pp_resource.h:40
PP_Bool(* IsURLLoader)(PP_Resource resource)
Definition: ppb_url_loader.h:75
int32_t(* Open)(PP_Resource loader, PP_Resource request_info, struct PP_CompletionCallback callback)
Definition: ppb_url_loader.h:92
int32_t PP_Instance
Definition: pp_instance.h:34
PP_Bool
Definition: pp_bool.h:30
PP_Resource(* GetResponseInfo)(PP_Resource loader)
Definition: ppb_url_loader.h:163
PP_Bool(* GetUploadProgress)(PP_Resource loader, int64_t *bytes_sent, int64_t *total_bytes_to_be_sent)
Definition: ppb_url_loader.h:128
Definition: pp_completion_callback.h:139
PP_Bool(* GetDownloadProgress)(PP_Resource loader, int64_t *bytes_received, int64_t *total_bytes_to_be_received)
Definition: ppb_url_loader.h:150
int32_t(* FollowRedirect)(PP_Resource loader, struct PP_CompletionCallback callback)
Definition: ppb_url_loader.h:109