| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /* Given an interface like this: | 5 /* Given an interface like this: |
| 6 * | 6 * |
| 7 * struct PPB_Frob_1_1 { | 7 * struct PPB_Frob_1_1 { |
| 8 * void (*Flange)(int32_t param1, char* param2); | 8 * void (*Flange)(int32_t param1, char* param2); |
| 9 * int32_t (*Shlep)(PP_CompletionCallback); | 9 * int32_t (*Shlep)(PP_CompletionCallback); |
| 10 * }; | 10 * }; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 /* Chrome M14 required */ | 160 /* Chrome M14 required */ |
| 161 BEGIN_INTERFACE(URLLoaderInterface, PPB_URLLoader_1_0, | 161 BEGIN_INTERFACE(URLLoaderInterface, PPB_URLLoader_1_0, |
| 162 PPB_URLLOADER_INTERFACE_1_0) | 162 PPB_URLLOADER_INTERFACE_1_0) |
| 163 METHOD1(URLLoaderInterface, PP_Resource, Create, PP_Instance) | 163 METHOD1(URLLoaderInterface, PP_Resource, Create, PP_Instance) |
| 164 METHOD3(URLLoaderInterface, int32_t, Open, PP_Resource, PP_Resource, | 164 METHOD3(URLLoaderInterface, int32_t, Open, PP_Resource, PP_Resource, |
| 165 PP_CompletionCallback) | 165 PP_CompletionCallback) |
| 166 METHOD1(URLLoaderInterface, PP_Resource, GetResponseInfo, PP_Resource) | 166 METHOD1(URLLoaderInterface, PP_Resource, GetResponseInfo, PP_Resource) |
| 167 METHOD4(URLLoaderInterface, int32_t, ReadResponseBody, PP_Resource, void*, | 167 METHOD4(URLLoaderInterface, int32_t, ReadResponseBody, PP_Resource, void*, |
| 168 int32_t, PP_CompletionCallback) | 168 int32_t, PP_CompletionCallback) |
| 169 METHOD2(URLLoaderInterface, int32_t, FinishStreamingToFile, PP_Resource, |
| 170 PP_CompletionCallback) |
| 169 METHOD1(URLLoaderInterface, void, Close, PP_Resource) | 171 METHOD1(URLLoaderInterface, void, Close, PP_Resource) |
| 170 END_INTERFACE(URLLoaderInterface, PPB_URLLoader_1_0) | 172 END_INTERFACE(URLLoaderInterface, PPB_URLLoader_1_0) |
| 171 | 173 |
| 172 /* Chrome M14 required */ | 174 /* Chrome M14 required */ |
| 173 BEGIN_INTERFACE(URLRequestInfoInterface, PPB_URLRequestInfo_1_0, | 175 BEGIN_INTERFACE(URLRequestInfoInterface, PPB_URLRequestInfo_1_0, |
| 174 PPB_URLREQUESTINFO_INTERFACE_1_0) | 176 PPB_URLREQUESTINFO_INTERFACE_1_0) |
| 175 METHOD1(URLRequestInfoInterface, PP_Resource, Create, PP_Instance) | 177 METHOD1(URLRequestInfoInterface, PP_Resource, Create, PP_Instance) |
| 176 METHOD3(URLRequestInfoInterface, PP_Bool, SetProperty, PP_Resource, | 178 METHOD3(URLRequestInfoInterface, PP_Bool, SetProperty, PP_Resource, |
| 177 PP_URLRequestProperty, PP_Var) | 179 PP_URLRequestProperty, PP_Var) |
| 180 METHOD3(URLRequestInfoInterface, PP_Bool, AppendDataToBody, PP_Resource, |
| 181 const void*, uint32_t) |
| 178 END_INTERFACE(URLRequestInfoInterface, PPB_URLRequestInfo_1_0) | 182 END_INTERFACE(URLRequestInfoInterface, PPB_URLRequestInfo_1_0) |
| 179 | 183 |
| 180 /* Chrome M14 required */ | 184 /* Chrome M14 required */ |
| 181 BEGIN_INTERFACE(URLResponseInfoInterface, PPB_URLResponseInfo_1_0, | 185 BEGIN_INTERFACE(URLResponseInfoInterface, PPB_URLResponseInfo_1_0, |
| 182 PPB_URLRESPONSEINFO_INTERFACE_1_0) | 186 PPB_URLRESPONSEINFO_INTERFACE_1_0) |
| 183 METHOD2(URLResponseInfoInterface, PP_Var, GetProperty, PP_Resource, | 187 METHOD2(URLResponseInfoInterface, PP_Var, GetProperty, PP_Resource, |
| 184 PP_URLResponseProperty) | 188 PP_URLResponseProperty) |
| 189 METHOD1(URLResponseInfoInterface, PP_Resource, GetBodyAsFileRef, |
| 190 PP_Resource) |
| 185 END_INTERFACE(URLResponseInfoInterface, PPB_URLResponseInfo_1_0) | 191 END_INTERFACE(URLResponseInfoInterface, PPB_URLResponseInfo_1_0) |
| 186 | 192 |
| 187 /* Chrome M31 required */ | 193 /* Chrome M31 required */ |
| 188 BEGIN_INTERFACE(TCPSocketInterface, PPB_TCPSocket_1_1, | 194 BEGIN_INTERFACE(TCPSocketInterface, PPB_TCPSocket_1_1, |
| 189 PPB_TCPSOCKET_INTERFACE_1_1) | 195 PPB_TCPSOCKET_INTERFACE_1_1) |
| 190 METHOD1(TCPSocketInterface, PP_Resource, Create, PP_Instance) | 196 METHOD1(TCPSocketInterface, PP_Resource, Create, PP_Instance) |
| 191 METHOD3(TCPSocketInterface, int32_t, Bind, PP_Resource, PP_Resource, | 197 METHOD3(TCPSocketInterface, int32_t, Bind, PP_Resource, PP_Resource, |
| 192 PP_CompletionCallback) | 198 PP_CompletionCallback) |
| 193 METHOD3(TCPSocketInterface, int32_t, Listen, PP_Resource, int32_t, | 199 METHOD3(TCPSocketInterface, int32_t, Listen, PP_Resource, int32_t, |
| 194 PP_CompletionCallback) | 200 PP_CompletionCallback) |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 PP_Resource, | 236 PP_Resource, |
| 231 PP_Resource, | 237 PP_Resource, |
| 232 PP_CompletionCallback) | 238 PP_CompletionCallback) |
| 233 METHOD3(UDPSocketInterface, | 239 METHOD3(UDPSocketInterface, |
| 234 int32_t, | 240 int32_t, |
| 235 LeaveGroup, | 241 LeaveGroup, |
| 236 PP_Resource, | 242 PP_Resource, |
| 237 PP_Resource, | 243 PP_Resource, |
| 238 PP_CompletionCallback) | 244 PP_CompletionCallback) |
| 239 END_INTERFACE(UDPSocketInterface, PPB_UDPSocket_1_2) | 245 END_INTERFACE(UDPSocketInterface, PPB_UDPSocket_1_2) |
| OLD | NEW |