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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc

Issue 9802027: WebSocket Pepper API: synchronous completion support (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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_rpc_client.cc
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc b/ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc
index c869403721f291375a3f83871fc6c1ced6287f56..82c8247131245ab75f94225b6643ceaa2bf45a59 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc
+++ b/ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc
@@ -3642,17 +3642,19 @@ NaClSrpcError PpbWebSocketRpcClient::PPB_WebSocket_ReceiveMessage(
NaClSrpcChannel* channel,
PP_Resource ws,
int32_t callback_id,
- int32_t* pp_error) {
+ int32_t* pp_error,
+ nacl_abi_size_t* sync_read_buffer_bytes, char* sync_read_buffer) {
VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
("%s: PPAPI calls are not supported off the main thread\n",
__FUNCTION__));
NaClSrpcError retval;
retval = NaClSrpcInvokeBySignature(
channel,
- "PPB_WebSocket_ReceiveMessage:ii:i",
+ "PPB_WebSocket_ReceiveMessage:ii:iC",
ws,
callback_id,
- pp_error
+ pp_error,
+ sync_read_buffer_bytes, sync_read_buffer
);
return retval;
}

Powered by Google App Engine
This is Rietveld 408576698