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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/ppb_url_loader.srpc

Issue 7740013: Cloning a bunch of stuff from the native_client repository at r6528 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright (c) 2011 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_URLLoader calls from the plugin.
6 # See ppapi/c/ppb_url_loader.h for interface details.
7
8 {
9 'name': 'PpbURLLoaderRpc',
10 'rpcs': [
11 {'name': 'PPB_URLLoader_Create',
12 'inputs': [['instance', 'PP_Instance'], # PP_Instance
13 ],
14 'outputs': [['resource', 'PP_Resource'], # PP_Resource
15 ]
16 },
17 {'name': 'PPB_URLLoader_IsURLLoader',
18 'inputs': [['resource', 'PP_Resource'], # PP_Resource
19 ],
20 'outputs': [['is_url_loader', 'int32_t'], # PP_Bool
21 ]
22 },
23 {'name': 'PPB_URLLoader_Open',
24 'inputs': [['loader', 'PP_Resource'], # PP_Resource
25 ['request', 'PP_Resource'], # PP_Resource
26 ['callback_id', 'int32_t'], # PP_CompletionCallback
27 ],
28 'outputs': [['pp_error', 'int32_t'], # int32_t
29 ]
30 },
31 {'name': 'PPB_URLLoader_FollowRedirect',
32 'inputs': [['loader', 'PP_Resource'], # PP_Resource
33 ['callback_id', 'int32_t'], # PP_CompletionCallback
34 ],
35 'outputs': [['pp_error', 'int32_t'], # int32_t
36 ]
37 },
38 {'name': 'PPB_URLLoader_GetUploadProgress',
39 'inputs': [['loader', 'PP_Resource'], # PP_Resource
40 ],
41 'outputs': [['bytes_sent', 'int64_t'], # int64_t*
42 ['total_bytes_to_be_sent', 'int64_t'], # int64_t*
43 ['success', 'int32_t'], # PP_Bool
44 ]
45 },
46 {'name': 'PPB_URLLoader_GetDownloadProgress',
47 'inputs': [['loader', 'PP_Resource'], # PP_Resource
48 ],
49 'outputs': [['bytes_received', 'int64_t'], # int64_t*
50 ['total_bytes_to_be_received', 'int64_t'], # int64_t*
51 ['success', 'int32_t'], # PP_Bool
52 ]
53 },
54 {'name': 'PPB_URLLoader_GetResponseInfo',
55 'inputs': [['loader', 'PP_Resource'], # PP_Resource
56 ],
57 'outputs': [['response', 'PP_Resource'], # PP_Resource
58 ]
59 },
60 {'name': 'PPB_URLLoader_ReadResponseBody',
61 'inputs': [['loader', 'PP_Resource'], # PP_Resource
62 ['bytes_to_read', 'int32_t'], # int32_t
63 ['callback_id', 'int32_t'], # PP_CompletionCallback
64 ],
65 'outputs': [['buffer', 'char[]'], # char*
66 ['pp_error_or_bytes', 'int32_t'], # int32_t
67 ]
68 },
69 {'name': 'PPB_URLLoader_FinishStreamingToFile',
70 'inputs': [['loader', 'PP_Resource'], # PP_Resource
71 ['callback_id', 'int32_t'], # PP_CompletionCallback
72 ],
73 'outputs': [['pp_error', 'int32_t'], # int32_t
74 ]
75 },
76 {'name': 'PPB_URLLoader_Close',
77 'inputs': [['loader', 'PP_Resource'], # PP_Resource
78 ],
79 'outputs': [
80 ]
81 },
82 ]
83 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698