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

Side by Side Diff: net/tools/flip_server/spdy_interface.cc

Issue 8036016: Updated spdy_framer.cc with the latest code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/tools/flip_server/spdy_interface.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/tools/flip_server/spdy_interface.h" 5 #include "net/tools/flip_server/spdy_interface.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "net/spdy/spdy_framer.h" 9 #include "net/spdy/spdy_framer.h"
10 #include "net/spdy/spdy_protocol.h" 10 #include "net/spdy/spdy_protocol.h"
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 << rst_stream->stream_id() << ")"; 273 << rst_stream->stream_id() << ")";
274 client_output_ordering_.RemoveStreamId(rst_stream ->stream_id()); 274 client_output_ordering_.RemoveStreamId(rst_stream ->stream_id());
275 } 275 }
276 break; 276 break;
277 277
278 default: 278 default:
279 LOG(ERROR) << "SpdySM: Unknown control frame type"; 279 LOG(ERROR) << "SpdySM: Unknown control frame type";
280 } 280 }
281 } 281 }
282 282
283 bool SpdySM::OnControlFrameHeaderData(spdy::SpdyStreamId stream_id,
284 const char* header_data,
285 size_t len) {
286 DCHECK(false);
287 return false;
288 }
289
290 void SpdySM::OnDataFrameHeader(const spdy::SpdyDataFrame* frame) {
291 DCHECK(false);
292 }
293
283 void SpdySM::OnStreamFrameData(SpdyStreamId stream_id, 294 void SpdySM::OnStreamFrameData(SpdyStreamId stream_id,
284 const char* data, size_t len) { 295 const char* data, size_t len) {
285 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: StreamData(" << stream_id 296 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: StreamData(" << stream_id
286 << ", [" << len << "])"; 297 << ", [" << len << "])";
287 StreamToSmif::iterator it = stream_to_smif_.find(stream_id); 298 StreamToSmif::iterator it = stream_to_smif_.find(stream_id);
288 if (it == stream_to_smif_.end()) { 299 if (it == stream_to_smif_.end()) {
289 VLOG(2) << "Dropping frame from unknown stream " << stream_id; 300 VLOG(2) << "Dropping frame from unknown stream " << stream_id;
290 if (!valid_spdy_session_) 301 if (!valid_spdy_session_)
291 close_on_error_ = true; 302 close_on_error_ = true;
292 return; 303 return;
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 num_to_write, 0, should_compress); 604 num_to_write, 0, should_compress);
594 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: GetOutput SendDataFrame[" 605 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: GetOutput SendDataFrame["
595 << mci->stream_id << "]: " << num_to_write; 606 << mci->stream_id << "]: " << num_to_write;
596 mci->body_bytes_consumed += num_to_write; 607 mci->body_bytes_consumed += num_to_write;
597 mci->bytes_sent += num_to_write; 608 mci->bytes_sent += num_to_write;
598 } 609 }
599 } 610 }
600 611
601 } // namespace net 612 } // namespace net
602 613
OLDNEW
« no previous file with comments | « net/tools/flip_server/spdy_interface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698