Index: net/websockets/websocket_event_interface.h |
diff --git a/net/websockets/websocket_event_interface.h b/net/websockets/websocket_event_interface.h |
index 761f356c21760088cc337f1b81d6c3b99505c792..ac29659aac8bb608edab44014c1045ff90b870d0 100644 |
--- a/net/websockets/websocket_event_interface.h |
+++ b/net/websockets/websocket_event_interface.h |
@@ -13,12 +13,14 @@ |
#include "base/compiler_specific.h" // for WARN_UNUSED_RESULT |
#include "base/macros.h" |
+#include "base/memory/ref_counted.h" |
#include "net/base/net_export.h" |
class GURL; |
namespace net { |
+class IOBuffer; |
class SSLInfo; |
struct WebSocketHandshakeRequestInfo; |
struct WebSocketHandshakeResponseInfo; |
@@ -47,10 +49,10 @@ class NET_EXPORT WebSocketEventInterface { |
// Called when a data frame has been received from the remote host and needs |
// to be forwarded to the renderer process. |
- virtual ChannelState OnDataFrame( |
- bool fin, |
- WebSocketMessageType type, |
- const std::vector<char>& data) WARN_UNUSED_RESULT = 0; |
+ virtual ChannelState OnDataFrame(bool fin, |
+ WebSocketMessageType type, |
+ scoped_refptr<IOBuffer> buffer, |
+ size_t buffer_size) WARN_UNUSED_RESULT = 0; |
// Called to provide more send quota for this channel to the renderer |
// process. Currently the quota units are always bytes of message body |