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

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

Issue 10448083: Fix out of order SYN_STEAM frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix willchan's comments Created 8 years, 5 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
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/buffered_spdy_framer.h" 5 #include "net/spdy/buffered_spdy_framer.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace { 9 namespace {
10 10
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 size_t len) { 140 size_t len) {
141 visitor_->OnStreamFrameData(stream_id, data, len); 141 visitor_->OnStreamFrameData(stream_id, data, len);
142 } 142 }
143 143
144 void BufferedSpdyFramer::OnSetting(SpdySettingsIds id, 144 void BufferedSpdyFramer::OnSetting(SpdySettingsIds id,
145 uint8 flags, 145 uint8 flags,
146 uint32 value) { 146 uint32 value) {
147 visitor_->OnSetting(id, flags, value); 147 visitor_->OnSetting(id, flags, value);
148 } 148 }
149 149
150 void BufferedSpdyFramer::OnControlFrameCompressed(
151 const SpdyControlFrame& uncompressed_frame,
152 const SpdyControlFrame& compressed_frame) {
153 visitor_->OnControlFrameCompressed(uncompressed_frame, compressed_frame);
154 }
155
156
150 int BufferedSpdyFramer::protocol_version() { 157 int BufferedSpdyFramer::protocol_version() {
151 return spdy_framer_.protocol_version(); 158 return spdy_framer_.protocol_version();
152 } 159 }
153 160
154 size_t BufferedSpdyFramer::ProcessInput(const char* data, size_t len) { 161 size_t BufferedSpdyFramer::ProcessInput(const char* data, size_t len) {
155 return spdy_framer_.ProcessInput(data, len); 162 return spdy_framer_.ProcessInput(data, len);
156 } 163 }
157 164
158 void BufferedSpdyFramer::Reset() { 165 void BufferedSpdyFramer::Reset() {
159 spdy_framer_.Reset(); 166 spdy_framer_.Reset();
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 default: 290 default:
284 DCHECK(false); // Error! 291 DCHECK(false); // Error!
285 break; 292 break;
286 } 293 }
287 control_frame_.reset(new SpdyFrame(frame_size_without_header_block)); 294 control_frame_.reset(new SpdyFrame(frame_size_without_header_block));
288 memcpy(control_frame_.get()->data(), frame->data(), 295 memcpy(control_frame_.get()->data(), frame->data(),
289 frame_size_without_header_block); 296 frame_size_without_header_block);
290 } 297 }
291 298
292 } // namespace net 299 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698