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

Side by Side 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, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 5 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
6 // 6 //
7 // Automatically generated code. See srpcgen.py 7 // Automatically generated code. See srpcgen.py
8 // 8 //
9 // NaCl Simple Remote Procedure Call interface abstractions. 9 // NaCl Simple Remote Procedure Call interface abstractions.
10 10
(...skipping 3624 matching lines...) Expand 10 before | Expand all | Expand 10 after
3635 callback_id, 3635 callback_id,
3636 pp_error 3636 pp_error
3637 ); 3637 );
3638 return retval; 3638 return retval;
3639 } 3639 }
3640 3640
3641 NaClSrpcError PpbWebSocketRpcClient::PPB_WebSocket_ReceiveMessage( 3641 NaClSrpcError PpbWebSocketRpcClient::PPB_WebSocket_ReceiveMessage(
3642 NaClSrpcChannel* channel, 3642 NaClSrpcChannel* channel,
3643 PP_Resource ws, 3643 PP_Resource ws,
3644 int32_t callback_id, 3644 int32_t callback_id,
3645 int32_t* pp_error) { 3645 int32_t* pp_error,
3646 nacl_abi_size_t* sync_read_buffer_bytes, char* sync_read_buffer) {
3646 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), 3647 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
3647 ("%s: PPAPI calls are not supported off the main thread\n", 3648 ("%s: PPAPI calls are not supported off the main thread\n",
3648 __FUNCTION__)); 3649 __FUNCTION__));
3649 NaClSrpcError retval; 3650 NaClSrpcError retval;
3650 retval = NaClSrpcInvokeBySignature( 3651 retval = NaClSrpcInvokeBySignature(
3651 channel, 3652 channel,
3652 "PPB_WebSocket_ReceiveMessage:ii:i", 3653 "PPB_WebSocket_ReceiveMessage:ii:iC",
3653 ws, 3654 ws,
3654 callback_id, 3655 callback_id,
3655 pp_error 3656 pp_error,
3657 sync_read_buffer_bytes, sync_read_buffer
3656 ); 3658 );
3657 return retval; 3659 return retval;
3658 } 3660 }
3659 3661
3660 NaClSrpcError PpbWebSocketRpcClient::PPB_WebSocket_SendMessage( 3662 NaClSrpcError PpbWebSocketRpcClient::PPB_WebSocket_SendMessage(
3661 NaClSrpcChannel* channel, 3663 NaClSrpcChannel* channel,
3662 PP_Resource ws, 3664 PP_Resource ws,
3663 nacl_abi_size_t message_bytes, char* message, 3665 nacl_abi_size_t message_bytes, char* message,
3664 int32_t* pp_error) { 3666 int32_t* pp_error) {
3665 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), 3667 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
3935 channel, 3937 channel,
3936 "PPB_Zoom_ZoomLimitsChanged:idd:", 3938 "PPB_Zoom_ZoomLimitsChanged:idd:",
3937 instance, 3939 instance,
3938 minimum_factor, 3940 minimum_factor,
3939 maximum_factor 3941 maximum_factor
3940 ); 3942 );
3941 return retval; 3943 return retval;
3942 } 3944 }
3943 3945
3944 3946
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698