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

Side by Side Diff: net/spdy/spdy_websocket_stream.cc

Issue 15967002: [SPDY] Remove more code related to sending HEADERS frames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few fixes 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_websocket_stream.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/spdy/spdy_websocket_stream.h" 5 #include "net/spdy/spdy_websocket_stream.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 return NO_MORE_DATA_TO_SEND; 98 return NO_MORE_DATA_TO_SEND;
99 } 99 }
100 100
101 int SpdyWebSocketStream::OnResponseReceived( 101 int SpdyWebSocketStream::OnResponseReceived(
102 const SpdyHeaderBlock& response, 102 const SpdyHeaderBlock& response,
103 base::Time response_time, int status) { 103 base::Time response_time, int status) {
104 DCHECK(delegate_); 104 DCHECK(delegate_);
105 return delegate_->OnReceivedSpdyResponseHeader(response, status); 105 return delegate_->OnReceivedSpdyResponseHeader(response, status);
106 } 106 }
107 107
108 void SpdyWebSocketStream::OnHeadersSent() {
109 // This will be called when WebSocket over SPDY supports new framing.
110 NOTREACHED();
111 }
112
113 int SpdyWebSocketStream::OnDataReceived(scoped_ptr<SpdyBuffer> buffer) { 108 int SpdyWebSocketStream::OnDataReceived(scoped_ptr<SpdyBuffer> buffer) {
114 DCHECK(delegate_); 109 DCHECK(delegate_);
115 delegate_->OnReceivedSpdyData(buffer.Pass()); 110 delegate_->OnReceivedSpdyData(buffer.Pass());
116 return OK; 111 return OK;
117 } 112 }
118 113
119 void SpdyWebSocketStream::OnDataSent() { 114 void SpdyWebSocketStream::OnDataSent() {
120 DCHECK(delegate_); 115 DCHECK(delegate_);
121 delegate_->OnSentSpdyData(pending_send_data_length_); 116 delegate_->OnSentSpdyData(pending_send_data_length_);
122 pending_send_data_length_ = 0; 117 pending_send_data_length_ = 0;
(...skipping 15 matching lines...) Expand all
138 if (result == OK) { 133 if (result == OK) {
139 stream_ = stream_request_.ReleaseStream(); 134 stream_ = stream_request_.ReleaseStream();
140 DCHECK(stream_); 135 DCHECK(stream_);
141 stream_->SetDelegate(this); 136 stream_->SetDelegate(this);
142 } 137 }
143 DCHECK(delegate_); 138 DCHECK(delegate_);
144 delegate_->OnCreatedSpdyStream(result); 139 delegate_->OnCreatedSpdyStream(result);
145 } 140 }
146 141
147 } // namespace net 142 } // namespace net
OLDNEW
« 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