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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/ppb_host_resolver_private.srpc

Issue 9704080: HostResolver is exposed to Native Client. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync. Created 8 years, 9 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
Index: ppapi/native_client/src/shared/ppapi_proxy/ppb_host_resolver_private.srpc
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/ppb_host_resolver_private.srpc b/ppapi/native_client/src/shared/ppapi_proxy/ppb_host_resolver_private.srpc
new file mode 100644
index 0000000000000000000000000000000000000000..a5d733dbf7162a8713cb94abd6a1907b5448759f
--- /dev/null
+++ b/ppapi/native_client/src/shared/ppapi_proxy/ppb_host_resolver_private.srpc
@@ -0,0 +1,55 @@
+# Copyright (c) 2012 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_HostResolver_Private calls from
+# the plugin. See ppapi/c/private/ppb_host_resolver_private.h for
+# interface details.
+
+{
+ 'name': 'PpbHostResolverPrivateRpc',
+ 'rpcs': [
+ {'name': 'PPB_HostResolver_Private_Create',
+ 'inputs': [['instance', 'PP_Instance'],
+ ],
+ 'outputs': [['resource', 'PP_Resource'],
+ ]
+ },
+ {'name': 'PPB_HostResolver_Private_IsHostResolver',
+ 'inputs': [['resource', 'PP_Resource'],
+ ],
+ 'outputs': [['is_host_resolver', 'int32_t'], # PP_Bool
+ ]
+ },
+ {'name': 'PPB_HostResolver_Private_Resolve',
+ 'inputs': [['host_resolver', 'PP_Resource'],
+ ['host', 'string'], # const char*
+ ['port', 'int32_t'], # uint16_t
+ ['hint', 'char[]'], # const PP_HostResolver_Private_Hint*
+ ['callback_id', 'int32_t'] # PP_CompletionCallback
+ ],
+ 'outputs': [['pp_error', 'int32_t'],
+ ]
+ },
+ {'name': 'PPB_HostResolver_Private_GetCanonicalName',
+ 'inputs': [['host_resolver', 'PP_Resource'],
+ ],
+ 'outputs': [['canonical_name', 'char[]'] # PP_Var
+ ]
+ },
+ {'name': 'PPB_HostResolver_Private_GetSize',
+ 'inputs': [['host_resolver', 'PP_Resource'],
+ ],
+ 'outputs': [['size', 'int32_t'], # uint32_t
+ ]
+ },
+ {'name': 'PPB_HostResolver_Private_GetNetAddress',
+ 'inputs': [['host_resolver', 'PP_Resource'],
+ ['index', 'int32_t'], # uint32_t
+ ],
+ 'outputs': [['addr', 'char[]'], # PP_NetAddress_Private*
+ ['success', 'int32_t'], # PP_Bool
+ ]
+ }
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698