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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/ppb_core.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, 4 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_core.srpc
===================================================================
--- ppapi/native_client/src/shared/ppapi_proxy/ppb_core.srpc (revision 0)
+++ ppapi/native_client/src/shared/ppapi_proxy/ppb_core.srpc (revision 0)
@@ -0,0 +1,57 @@
+# Copyright (c) 2010 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_Core interface.
+# See ppapi/c/ppb_core.h for interface details.
+{
+ 'name': 'PpbCoreRpc',
+ 'rpcs': [
+ # Implements calls to increment the reference count on a resource.
+ {'name': 'PPB_Core_AddRefResource',
+ 'inputs': [['resource', 'PP_Resource'],
+ ],
+ 'outputs': []
+ },
+ # Implements calls to decrement the reference count on a resource.
+ {'name': 'PPB_Core_ReleaseResource',
+ 'inputs': [['resource', 'PP_Resource'],
+ ],
+ 'outputs': []
+ },
+ # Implements calls to decrement more than one reference count on a
+ # resource. This does not exist in PPB_Core, we implement it as an
+ # optimization.
+ {'name': 'ReleaseResourceMultipleTimes',
+ 'inputs': [['resource', 'PP_Resource'],
+ ['count', 'int32_t']
+ ],
+ 'outputs': []
+ },
+
+ # MemAlloc and MemFree do not require RPCs to the browser.
+
+ # Implements calls to get the time.
+ {'name': 'PPB_Core_GetTime',
+ 'inputs': [],
+ 'outputs': [['time', 'double'],
+ ]
+ },
+ # Implements calls to get the browser time ticks.
+ {'name': 'PPB_Core_GetTimeTicks',
+ 'inputs': [],
+ 'outputs': [['time_ticks', 'double'],
+ ]
+ },
+ # To be called from the main thread only!
+ {'name': 'PPB_Core_CallOnMainThread',
+ 'inputs': [['delay_in_milliseconds', 'int32_t'], # int32_t
+ ['callback_id', 'int32_t'], # PP_CompletionCallback
+ ['result', 'int32_t'], # int32_t
+ ],
+ 'outputs': []
+ },
+
+ # IsMainThread does not require PRCs to the browser.
+ ]
+}
Property changes on: ppapi/native_client/src/shared/ppapi_proxy/ppb_core.srpc
___________________________________________________________________
Added: svn:executable
+ *

Powered by Google App Engine
This is Rietveld 408576698