Index: net/spdy/spdy_websocket_stream.cc |
diff --git a/net/spdy/spdy_websocket_stream.cc b/net/spdy/spdy_websocket_stream.cc |
index 1f80d48cb44595816c348226a971d8ab82aefafa..a17ff738d6f56833891d0c593bca763d96d7da96 100644 |
--- a/net/spdy/spdy_websocket_stream.cc |
+++ b/net/spdy/spdy_websocket_stream.cc |
@@ -8,8 +8,8 @@ |
#include "base/bind_helpers.h" |
#include "base/compiler_specific.h" |
#include "googleurl/src/gurl.h" |
-#include "net/base/net_errors.h" |
#include "net/base/io_buffer.h" |
+#include "net/base/net_errors.h" |
#include "net/spdy/spdy_framer.h" |
#include "net/spdy/spdy_protocol.h" |
#include "net/spdy/spdy_session.h" |
@@ -116,9 +116,9 @@ void SpdyWebSocketStream::OnHeadersSent() { |
NOTREACHED(); |
} |
-int SpdyWebSocketStream::OnDataReceived(const char* data, int length) { |
+int SpdyWebSocketStream::OnDataReceived(scoped_ptr<SpdyBuffer> buffer) { |
DCHECK(delegate_); |
- delegate_->OnReceivedSpdyData(data, length); |
+ delegate_->OnReceivedSpdyData(buffer.Pass()); |
return OK; |
} |