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

Unified Diff: ppapi/cpp/dev/websocket_dev.cc

Issue 9026007: WebSocket Pepper API: WebArrayBuffer support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wen32 build catch missing PP_ToBool 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.h ('k') | ppapi/tests/test_websocket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/websocket_dev.cc
diff --git a/ppapi/cpp/dev/websocket_dev.cc b/ppapi/cpp/dev/websocket_dev.cc
index 52ffdbac58757d368075109829fab81b171308f3..9720889b9af6f92dd073c1d4879382ba27f95b30 100644
--- a/ppapi/cpp/dev/websocket_dev.cc
+++ b/ppapi/cpp/dev/websocket_dev.cc
@@ -145,4 +145,17 @@ Var WebSocket_Dev::GetURL() {
get_interface<PPB_WebSocket_Dev>()->GetURL(pp_resource()));
}
+bool WebSocket_Dev::SetBinaryType(PP_WebSocketBinaryType_Dev binary_type) {
+ if (!has_interface<PPB_WebSocket_Dev>())
+ return false;
+ return PP_ToBool(get_interface<PPB_WebSocket_Dev>()->SetBinaryType(
+ pp_resource(), binary_type));
+}
+
+PP_WebSocketBinaryType_Dev WebSocket_Dev::GetBinaryType() {
+ if (!has_interface<PPB_WebSocket_Dev>())
+ return PP_WEBSOCKETBINARYTYPE_INVALID;
+ return get_interface<PPB_WebSocket_Dev>()->GetBinaryType(pp_resource());
+}
+
} // namespace pp
« no previous file with comments | « ppapi/cpp/dev/websocket_dev.h ('k') | ppapi/tests/test_websocket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698