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