Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Unified Diff: src/shared/ppapi_proxy/ppb_url_loader.srpc

Issue 6177007: ppapi_proxy: Support loading and reading urls. Proxy URLLoader.... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/shared/ppapi_proxy/ppb_rpc_server.cc ('k') | src/shared/ppapi_proxy/ppp_rpc_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/ppapi_proxy/ppb_url_loader.srpc
===================================================================
--- src/shared/ppapi_proxy/ppb_url_loader.srpc (revision 0)
+++ src/shared/ppapi_proxy/ppb_url_loader.srpc (revision 0)
@@ -0,0 +1,83 @@
+# Copyright (c) 2011 The Native Client Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+#
+# RPC methods used to implement PPB_URLLoader calls from the plugin.
+# See ppapi/c/ppb_url_loader.h for interface details.
+
+{
+ 'name': 'PpbURLLoaderRpc',
+ 'rpcs': [
+ {'name': 'PPB_URLLoader_Create',
+ 'inputs': [['instance', 'PP_Instance'], # PP_Instance
+ ],
+ 'outputs': [['resource', 'PP_Resource'], # PP_Resource
+ ]
+ },
+ {'name': 'PPB_URLLoader_IsURLLoader',
+ 'inputs': [['resource', 'PP_Resource'], # PP_Resource
+ ],
+ 'outputs': [['is_url_loader', 'int32_t'], # PP_Bool
+ ]
+ },
+ {'name': 'PPB_URLLoader_Open',
+ 'inputs': [['loader', 'PP_Resource'], # PP_Resource
+ ['request', 'PP_Resource'], # PP_Resource
+ ['callback_id', 'int32_t'], # PP_CompletionCallback
+ ],
+ 'outputs': [['pp_error', 'int32_t'], # int32_t
+ ]
+ },
+ {'name': 'PPB_URLLoader_FollowRedirect',
+ 'inputs': [['loader', 'PP_Resource'], # PP_Resource
+ ['callback_id', 'int32_t'], # PP_CompletionCallback
+ ],
+ 'outputs': [['pp_error', 'int32_t'], # int32_t
+ ]
+ },
+ {'name': 'PPB_URLLoader_GetUploadProgress',
+ 'inputs': [['loader', 'PP_Resource'], # PP_Resource
+ ],
+ 'outputs': [['bytes_sent', 'int64_t'], # int64_t*
+ ['total_bytes_to_be_sent', 'int64_t'], # int64_t*
+ ['success', 'int32_t'], # PP_Bool
+ ]
+ },
+ {'name': 'PPB_URLLoader_GetDownloadProgress',
+ 'inputs': [['loader', 'PP_Resource'], # PP_Resource
+ ],
+ 'outputs': [['bytes_received', 'int64_t'], # int64_t*
+ ['total_bytes_to_be_received', 'int64_t'], # int64_t*
+ ['success', 'int32_t'], # PP_Bool
+ ]
+ },
+ {'name': 'PPB_URLLoader_GetResponseInfo',
+ 'inputs': [['loader', 'PP_Resource'], # PP_Resource
+ ],
+ 'outputs': [['response', 'PP_Resource'], # PP_Resource
+ ]
+ },
+ {'name': 'PPB_URLLoader_ReadResponseBody',
+ 'inputs': [['loader', 'PP_Resource'], # PP_Resource
+ ['bytes_to_read', 'int32_t'], # int32_t
+ ['callback_id', 'int32_t'], # PP_CompletionCallback
+ ],
+ 'outputs': [['buffer', 'char[]'], # char*
+ ['pp_error_or_bytes', 'int32_t'], # int32_t
+ ]
+ },
+ {'name': 'PPB_URLLoader_FinishStreamingToFile',
+ 'inputs': [['loader', 'int64_t'], # PP_Resource
+ ['callback_id', 'int32_t'], # PP_CompletionCallback
+ ],
+ 'outputs': [['pp_error', 'int32_t'], # int32_t
+ ]
+ },
+ {'name': 'PPB_URLLoader_Close',
+ 'inputs': [['loader', 'PP_Resource'], # PP_Resource
+ ],
+ 'outputs': [
+ ]
+ },
+ ]
+}
« no previous file with comments | « src/shared/ppapi_proxy/ppb_rpc_server.cc ('k') | src/shared/ppapi_proxy/ppp_rpc_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698