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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_websocket.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
Index: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_websocket.cc
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_websocket.cc b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_websocket.cc
index a24c654c13a9b5e224bd50eeeb31ce7703e4440f..56b4de2c3cd9a1fc42e33334bf84388b42d445db 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_websocket.cc
+++ b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_websocket.cc
@@ -303,42 +303,6 @@ PP_Var GetURL(PP_Resource ws) {
return PP_MakeUndefined();
}
-PP_Bool SetBinaryType(PP_Resource ws,
- PP_WebSocketBinaryType_Dev binary_type) {
- DebugPrintf("PPB_WebSocket::SetBinaryType: ws=%"NACL_PRId32"\n", ws);
-
- int32_t success;
- NaClSrpcError srpc_result =
- PpbWebSocketRpcClient::PPB_WebSocket_SetBinaryType(
- GetMainSrpcChannel(),
- ws,
- static_cast<int32_t>(binary_type),
- &success);
- DebugPrintf("PPB_WebSocket::SetBinaryType: %s\n",
- NaClSrpcErrorString(srpc_result));
-
- if (srpc_result == NACL_SRPC_RESULT_OK && success)
- return PP_TRUE;
- return PP_FALSE;
-}
-
-PP_WebSocketBinaryType_Dev GetBinaryType(PP_Resource ws) {
- DebugPrintf("PPB_WebSocket::GetBinaryType: ws=%"NACL_PRId32"\n", ws);
-
- int32_t binary_type;
- NaClSrpcError srpc_result =
- PpbWebSocketRpcClient::PPB_WebSocket_GetBinaryType(
- GetMainSrpcChannel(),
- ws,
- &binary_type);
- DebugPrintf("PPB_WebSocket::GetBinaryType: %s\n",
- NaClSrpcErrorString(srpc_result));
-
- if (srpc_result != NACL_SRPC_RESULT_OK)
- return PP_WEBSOCKETBINARYTYPE_INVALID;
- return static_cast<PP_WebSocketBinaryType_Dev>(binary_type);
-}
-
} // namespace
const PPB_WebSocket_Dev* PluginWebSocket::GetInterface() {
@@ -356,9 +320,7 @@ const PPB_WebSocket_Dev* PluginWebSocket::GetInterface() {
&GetExtensions,
&GetProtocol,
&GetReadyState,
- &GetURL,
- &SetBinaryType,
- &GetBinaryType
+ &GetURL
};
return &websocket_interface;
}

Powered by Google App Engine
This is Rietveld 408576698