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

Unified Diff: ppapi/thunk/ppb_websocket_thunk.cc

Issue 9192009: WebSocket Pepper API: make the API out of dev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove binary type handling interfaces 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/thunk/ppb_websocket_thunk.cc
diff --git a/ppapi/thunk/ppb_websocket_thunk.cc b/ppapi/thunk/ppb_websocket_thunk.cc
index ca12d6bb7e0bfed3ae3150750f42d296746740d4..58e90455905e5dcb936f22ae681ba65f5f797058 100644
--- a/ppapi/thunk/ppb_websocket_thunk.cc
+++ b/ppapi/thunk/ppb_websocket_thunk.cc
@@ -110,10 +110,10 @@ PP_Var GetProtocol(PP_Resource resource) {
return enter.object()->GetProtocol();
}
-PP_WebSocketReadyState_Dev GetReadyState(PP_Resource resource) {
+PP_WebSocketReadyState GetReadyState(PP_Resource resource) {
EnterResource<PPB_WebSocket_API> enter(resource, false);
if (enter.failed())
- return PP_WEBSOCKETREADYSTATE_INVALID_DEV;
+ return PP_WEBSOCKETREADYSTATE_INVALID;
return enter.object()->GetReadyState();
}
@@ -124,39 +124,7 @@ 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,
- &Connect,
- &Close,
- &ReceiveMessage,
- &SendMessage,
- &GetBufferedAmount,
- &GetCloseCode,
- &GetCloseReason,
- &GetCloseWasClean,
- &GetExtensions,
- &GetProtocol,
- &GetReadyState,
- &GetURL
-};
-
-const PPB_WebSocket_Dev_0_9 g_ppb_websocket_0_9_thunk = {
+const PPB_WebSocket_1_0 g_ppb_websocket_1_0_thunk = {
&Create,
&IsWebSocket,
&Connect,
@@ -171,18 +139,12 @@ const PPB_WebSocket_Dev_0_9 g_ppb_websocket_0_9_thunk = {
&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;
+const PPB_WebSocket_1_0* GetPPB_WebSocket_1_0_Thunk() {
+ return &g_ppb_websocket_1_0_thunk;
}
} // namespace thunk

Powered by Google App Engine
This is Rietveld 408576698