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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc

Issue 9296001: WebSocket Pepper API: Remove binary type handling interfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 10 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 | Annotate | Revision Log
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 3420 matching lines...) Expand 10 before | Expand all | Expand 10 after
3431 NaClSrpcError retval; 3431 NaClSrpcError retval;
3432 retval = NaClSrpcInvokeBySignature( 3432 retval = NaClSrpcInvokeBySignature(
3433 channel, 3433 channel,
3434 "PPB_WebSocket_GetURL:i:C", 3434 "PPB_WebSocket_GetURL:i:C",
3435 ws, 3435 ws,
3436 url_bytes, url 3436 url_bytes, url
3437 ); 3437 );
3438 return retval; 3438 return retval;
3439 } 3439 }
3440 3440
3441 NaClSrpcError PpbWebSocketRpcClient::PPB_WebSocket_SetBinaryType(
3442 NaClSrpcChannel* channel,
3443 PP_Resource ws,
3444 int32_t binary_type,
3445 int32_t* success) {
3446 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
3447 ("%s: PPAPI calls are not supported off the main thread\n",
3448 __FUNCTION__));
3449 NaClSrpcError retval;
3450 retval = NaClSrpcInvokeBySignature(
3451 channel,
3452 "PPB_WebSocket_SetBinaryType:ii:i",
3453 ws,
3454 binary_type,
3455 success
3456 );
3457 return retval;
3458 }
3459
3460 NaClSrpcError PpbWebSocketRpcClient::PPB_WebSocket_GetBinaryType(
3461 NaClSrpcChannel* channel,
3462 PP_Resource ws,
3463 int32_t* binary_type) {
3464 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
3465 ("%s: PPAPI calls are not supported off the main thread\n",
3466 __FUNCTION__));
3467 NaClSrpcError retval;
3468 retval = NaClSrpcInvokeBySignature(
3469 channel,
3470 "PPB_WebSocket_GetBinaryType:i:i",
3471 ws,
3472 binary_type
3473 );
3474 return retval;
3475 }
3476
3477 NaClSrpcError PpbWidgetRpcClient::PPB_Widget_IsWidget( 3441 NaClSrpcError PpbWidgetRpcClient::PPB_Widget_IsWidget(
3478 NaClSrpcChannel* channel, 3442 NaClSrpcChannel* channel,
3479 PP_Resource resource, 3443 PP_Resource resource,
3480 int32_t* is_widget) { 3444 int32_t* is_widget) {
3481 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), 3445 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
3482 ("%s: PPAPI calls are not supported off the main thread\n", 3446 ("%s: PPAPI calls are not supported off the main thread\n",
3483 __FUNCTION__)); 3447 __FUNCTION__));
3484 NaClSrpcError retval; 3448 NaClSrpcError retval;
3485 retval = NaClSrpcInvokeBySignature( 3449 retval = NaClSrpcInvokeBySignature(
3486 channel, 3450 channel,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
3597 channel, 3561 channel,
3598 "PPB_Zoom_ZoomLimitsChanged:idd:", 3562 "PPB_Zoom_ZoomLimitsChanged:idd:",
3599 instance, 3563 instance,
3600 minimum_factor, 3564 minimum_factor,
3601 maximum_factor 3565 maximum_factor
3602 ); 3566 );
3603 return retval; 3567 return retval;
3604 } 3568 }
3605 3569
3606 3570
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698