summaryrefslogtreecommitdiffstats
path: root/ppapi/thunk/ppb_websocket_thunk.cc
diff options
context:
space:
mode:
authortoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-27 06:07:25 +0000
committertoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-27 06:07:25 +0000
commitdc909a9e56db63a207f21d2056c86f531aedc18f (patch)
tree91e9c7df3d8ff83b94e7528f28be4f15478b0188 /ppapi/thunk/ppb_websocket_thunk.cc
parent1c6027f1ae1f33a7ead07bfb767843a1170b8da7 (diff)
downloadchromium_src-dc909a9e56db63a207f21d2056c86f531aedc18f.zip
chromium_src-dc909a9e56db63a207f21d2056c86f531aedc18f.tar.gz
chromium_src-dc909a9e56db63a207f21d2056c86f531aedc18f.tar.bz2
WebSocket Pepper API: Remove binary type handling interfaces
In an API discussion, we decide to remove binary type handling interfaces from the first release. This change just fix the interface. The change to make the interface out of dev will follow this change. BUG=87310 TEST=ui_test --gtest_filter='*WebSocket*' Review URL: https://chromiumcodereview.appspot.com/9296001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119382 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk/ppb_websocket_thunk.cc')
-rw-r--r--ppapi/thunk/ppb_websocket_thunk.cc38
1 files changed, 0 insertions, 38 deletions
diff --git a/ppapi/thunk/ppb_websocket_thunk.cc b/ppapi/thunk/ppb_websocket_thunk.cc
index ca12d6b..ea67f84 100644
--- a/ppapi/thunk/ppb_websocket_thunk.cc
+++ b/ppapi/thunk/ppb_websocket_thunk.cc
@@ -124,21 +124,6 @@ PP_Var GetURL(PP_Resource resource) {
return enter.object()->GetURL();
}
-PP_Bool SetBinaryType(PP_Resource resource,
- PP_WebSocketBinaryType_Dev binary_type) {
- EnterResource<PPB_WebSocket_API> enter(resource, false);
- if (enter.failed())
- return PP_FALSE;
- return enter.object()->SetBinaryType(binary_type);
-}
-
-PP_WebSocketBinaryType_Dev GetBinaryType(PP_Resource resource) {
- EnterResource<PPB_WebSocket_API> enter(resource, false);
- if (enter.failed())
- return PP_WEBSOCKETBINARYTYPE_INVALID;
- return enter.object()->GetBinaryType();
-}
-
const PPB_WebSocket_Dev_0_1 g_ppb_websocket_0_1_thunk = {
&Create,
&IsWebSocket,
@@ -156,34 +141,11 @@ const PPB_WebSocket_Dev_0_1 g_ppb_websocket_0_1_thunk = {
&GetURL
};
-const PPB_WebSocket_Dev_0_9 g_ppb_websocket_0_9_thunk = {
- &Create,
- &IsWebSocket,
- &Connect,
- &Close,
- &ReceiveMessage,
- &SendMessage,
- &GetBufferedAmount,
- &GetCloseCode,
- &GetCloseReason,
- &GetCloseWasClean,
- &GetExtensions,
- &GetProtocol,
- &GetReadyState,
- &GetURL,
- &SetBinaryType,
- &GetBinaryType
-};
-
} // namespace
const PPB_WebSocket_Dev_0_1* GetPPB_WebSocket_Dev_0_1_Thunk() {
return &g_ppb_websocket_0_1_thunk;
}
-const PPB_WebSocket_Dev_0_9* GetPPB_WebSocket_Dev_0_9_Thunk() {
- return &g_ppb_websocket_0_9_thunk;
-}
-
} // namespace thunk
} // namespace ppapi