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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.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, 11 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
« no previous file with comments | « ppapi/cpp/dev/websocket_dev.cc ('k') | ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_websocket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.cc
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.cc b/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.cc
index 01749fcf46fba679e516f02691de07abf626e6f9..d59997b3265370764f62884a025b5c30a9d22fc4 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.cc
+++ b/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.cc
@@ -321,40 +321,3 @@ void PpbWebSocketRpcServer::PPB_WebSocket_GetURL(
if (SerializeTo(&url, url_bytes, url_size))
rpc->result = NACL_SRPC_RESULT_OK;
}
-
-void PpbWebSocketRpcServer::PPB_WebSocket_SetBinaryType(
- NaClSrpcRpc* rpc,
- NaClSrpcClosure* done,
- // inputs
- PP_Resource ws,
- int32_t binary_type,
- // outputs
- int32_t* success) {
- NaClSrpcClosureRunner runner(done);
- rpc->result = NACL_SRPC_RESULT_APP_ERROR;
-
- PP_Bool pp_success = PPBWebSocketInterface()->SetBinaryType(
- ws, static_cast<PP_WebSocketBinaryType_Dev>(binary_type));
- *success = PP_ToBool(pp_success);
- DebugPrintf("PPB_WebSocket::SetBinaryType:: success=%d\n", *success);
-
- rpc->result = NACL_SRPC_RESULT_OK;
-}
-
-void PpbWebSocketRpcServer::PPB_WebSocket_GetBinaryType(
- NaClSrpcRpc* rpc,
- NaClSrpcClosure* done,
- // inputs
- PP_Resource ws,
- // outputs
- int32_t* binary_type) {
- NaClSrpcClosureRunner runner(done);
- rpc->result = NACL_SRPC_RESULT_APP_ERROR;
-
- *binary_type = static_cast<int32_t>(
- PPBWebSocketInterface()->GetBinaryType(ws));
- DebugPrintf(
- "PPB_WebSocket::GetBinaryType:: binary_type=%d\n", *binary_type);
-
- rpc->result = NACL_SRPC_RESULT_OK;
-}
« no previous file with comments | « ppapi/cpp/dev/websocket_dev.cc ('k') | ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_websocket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698