OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2010 The Native Client 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 # RPC methods used to implement PPB_URLRequestInfo calls from the plugin. |
| 6 # See ppapi/c/ppb_url_request_info.h for interface details. |
| 7 |
| 8 { |
| 9 'name': 'PpbURLRequestInfoRpc', |
| 10 'rpcs': [ |
| 11 {'name': 'PPB_URLRequestInfo_Create', |
| 12 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
| 13 ], |
| 14 'outputs': [['resource', 'PP_Resource'], # PP_Resource |
| 15 ] |
| 16 }, |
| 17 {'name': 'PPB_URLRequestInfo_IsURLRequestInfo', |
| 18 'inputs': [['resource', 'PP_Resource'], # PP_Resource |
| 19 ], |
| 20 'outputs': [['success', 'int32_t'], # PP_Bool |
| 21 ] |
| 22 }, |
| 23 {'name': 'PPB_URLRequestInfo_SetProperty', |
| 24 'inputs': [['request', 'PP_Resource'], # PP_Resource |
| 25 ['property', 'int32_t'], # PP_URLRequestProperty |
| 26 ['value', 'char[]'], # PP_Var |
| 27 ], |
| 28 'outputs': [['success', 'int32_t'], # PP_Bool |
| 29 ] |
| 30 }, |
| 31 {'name': 'PPB_URLRequestInfo_AppendDataToBody', |
| 32 'inputs': [['request', 'PP_Resource'], # PP_Resource |
| 33 ['data', 'char[]'], # char* + uint32_t |
| 34 ], |
| 35 'outputs': [['success', 'int32_t'], # PP_Bool |
| 36 ] |
| 37 }, |
| 38 {'name': 'PPB_URLRequestInfo_AppendFileToBody', |
| 39 'inputs': [['request', 'PP_Resource'], # PP_Resource |
| 40 ['file_ref', 'PP_Resource'], # PP_Resource |
| 41 ['start_offset', 'int64_t'], # int64_t |
| 42 ['number_of_bytes', 'int64_t'], # int64_t |
| 43 ['expected_last_modified_time', 'double'], # PP_Time |
| 44 ], |
| 45 'outputs': [['success', 'int32_t'], # PP_Bool |
| 46 ] |
| 47 }, |
| 48 ] |
| 49 } |
OLD | NEW |