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

Unified Diff: net/spdy/spdy_websocket_stream.cc

Issue 15936003: [SPDY] Refactor SpdyStream::Delegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 7 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 | « net/spdy/spdy_websocket_stream.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_websocket_stream.cc
diff --git a/net/spdy/spdy_websocket_stream.cc b/net/spdy/spdy_websocket_stream.cc
index 0d56454d8e2361362b4a27035d955109319a3824..61ee5eb4b99dec0eb75d15727e1fa5603f8ee6bd 100644
--- a/net/spdy/spdy_websocket_stream.cc
+++ b/net/spdy/spdy_websocket_stream.cc
@@ -71,7 +71,7 @@ int SpdyWebSocketStream::SendData(const char* data, int length) {
pending_send_data_length_ = static_cast<size_t>(length);
scoped_refptr<IOBuffer> buf(new IOBuffer(length));
memcpy(buf->data(), data, length);
- stream_->SendStreamData(buf.get(), length, MORE_DATA_TO_SEND);
+ stream_->SendData(buf.get(), length, MORE_DATA_TO_SEND);
return ERR_IO_PENDING;
}
@@ -82,20 +82,12 @@ void SpdyWebSocketStream::Close() {
}
}
-void SpdyWebSocketStream::OnSendRequestHeadersComplete() {
+void SpdyWebSocketStream::OnRequestHeadersSent() {
DCHECK(delegate_);
delegate_->OnSentSpdyHeaders();
}
-void SpdyWebSocketStream::OnSendBody() {
- CHECK(false);
-}
-
-void SpdyWebSocketStream::OnSendBodyComplete() {
- CHECK(false);
-}
-
-int SpdyWebSocketStream::OnResponseReceived(
+int SpdyWebSocketStream::OnResponseHeadersReceived(
const SpdyHeaderBlock& response,
base::Time response_time, int status) {
DCHECK(delegate_);
« no previous file with comments | « net/spdy/spdy_websocket_stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698