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

Unified Diff: webkit/plugins/ppapi/ppb_websocket_impl.h

Issue 9026007: WebSocket Pepper API: WebArrayBuffer support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove obsoleted WebData support 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: webkit/plugins/ppapi/ppb_websocket_impl.h
diff --git a/webkit/plugins/ppapi/ppb_websocket_impl.h b/webkit/plugins/ppapi/ppb_websocket_impl.h
index 3177c7b000d641444f998259e740a3447675cd9c..85de24a0a3ab0a2b15b6bac8c1284bb517324c0b 100644
--- a/webkit/plugins/ppapi/ppb_websocket_impl.h
+++ b/webkit/plugins/ppapi/ppb_websocket_impl.h
@@ -15,6 +15,7 @@
namespace ppapi {
class StringVar;
+class Var;
}
namespace WebKit {
@@ -64,7 +65,7 @@ class PPB_WebSocket_Impl : public ::ppapi::Resource,
// WebSocketClient implementation.
virtual void didConnect();
virtual void didReceiveMessage(const WebKit::WebString& message);
- virtual void didReceiveBinaryData(const WebKit::WebData& binaryData);
+ virtual void didReceiveArrayBuffer(const WebKit::WebArrayBuffer& binaryData);
virtual void didReceiveMessageError();
virtual void didUpdateBufferedAmount(unsigned long buffered_amount);
virtual void didStartClosingHandshake();
@@ -85,8 +86,7 @@ class PPB_WebSocket_Impl : public ::ppapi::Resource,
scoped_refptr< ::ppapi::TrackedCallback> receive_callback_;
PP_Var* receive_callback_var_;
bool wait_for_receive_;
- // TODO(toyoshim): Use std::queue<Var> when it supports binary.
- std::queue<PP_Var> received_messages_;
+ std::queue< ::ppapi::Var*> received_messages_;
scoped_refptr< ::ppapi::TrackedCallback> close_callback_;
uint16_t close_code_;
« no previous file with comments | « no previous file | webkit/plugins/ppapi/ppb_websocket_impl.cc » ('j') | webkit/plugins/ppapi/ppb_websocket_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698