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

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: rebase again 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 3556 matching lines...) Expand 10 before | Expand all | Expand 10 after
3567 callback_id, 3567 callback_id,
3568 pp_error 3568 pp_error
3569 ); 3569 );
3570 return retval; 3570 return retval;
3571 } 3571 }
3572 3572
3573 NaClSrpcError PpbWebSocketRpcClient::PPB_WebSocket_ReceiveMessage( 3573 NaClSrpcError PpbWebSocketRpcClient::PPB_WebSocket_ReceiveMessage(
3574 NaClSrpcChannel* channel, 3574 NaClSrpcChannel* channel,
3575 PP_Resource ws, 3575 PP_Resource ws,
3576 int32_t callback_id, 3576 int32_t callback_id,
3577 int32_t* pp_error) { 3577 int32_t* pp_error,
3578 nacl_abi_size_t* sync_read_buffer_bytes, char* sync_read_buffer) {
3578 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), 3579 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
3579 ("%s: PPAPI calls are not supported off the main thread\n", 3580 ("%s: PPAPI calls are not supported off the main thread\n",
3580 __FUNCTION__)); 3581 __FUNCTION__));
3581 NaClSrpcError retval; 3582 NaClSrpcError retval;
3582 retval = NaClSrpcInvokeBySignature( 3583 retval = NaClSrpcInvokeBySignature(
3583 channel, 3584 channel,
3584 "PPB_WebSocket_ReceiveMessage:ii:i", 3585 "PPB_WebSocket_ReceiveMessage:ii:iC",
3585 ws, 3586 ws,
3586 callback_id, 3587 callback_id,
3587 pp_error 3588 pp_error,
3589 sync_read_buffer_bytes, sync_read_buffer
3588 ); 3590 );
3589 return retval; 3591 return retval;
3590 } 3592 }
3591 3593
3592 NaClSrpcError PpbWebSocketRpcClient::PPB_WebSocket_SendMessage( 3594 NaClSrpcError PpbWebSocketRpcClient::PPB_WebSocket_SendMessage(
3593 NaClSrpcChannel* channel, 3595 NaClSrpcChannel* channel,
3594 PP_Resource ws, 3596 PP_Resource ws,
3595 nacl_abi_size_t message_bytes, char* message, 3597 nacl_abi_size_t message_bytes, char* message,
3596 int32_t* pp_error) { 3598 int32_t* pp_error) {
3597 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), 3599 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
3867 channel, 3869 channel,
3868 "PPB_Zoom_ZoomLimitsChanged:idd:", 3870 "PPB_Zoom_ZoomLimitsChanged:idd:",
3869 instance, 3871 instance,
3870 minimum_factor, 3872 minimum_factor,
3871 maximum_factor 3873 maximum_factor
3872 ); 3874 );
3873 return retval; 3875 return retval;
3874 } 3876 }
3875 3877
3876 3878
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698