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

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

Issue 12262004: Remove SpdyRstStreamControlFrame struct. Useful for SPDY 4 development. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/buffered_spdy_framer.h ('k') | net/spdy/buffered_spdy_framer_spdy2_unittest.cc » ('j') | 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/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 net { 9 namespace net {
10 10
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 } 230 }
231 231
232 SpdyFrame* BufferedSpdyFramer::CreateSynReply( 232 SpdyFrame* BufferedSpdyFramer::CreateSynReply(
233 SpdyStreamId stream_id, 233 SpdyStreamId stream_id,
234 SpdyControlFlags flags, 234 SpdyControlFlags flags,
235 bool compressed, 235 bool compressed,
236 const SpdyHeaderBlock* headers) { 236 const SpdyHeaderBlock* headers) {
237 return spdy_framer_.CreateSynReply(stream_id, flags, compressed, headers); 237 return spdy_framer_.CreateSynReply(stream_id, flags, compressed, headers);
238 } 238 }
239 239
240 SpdyRstStreamControlFrame* BufferedSpdyFramer::CreateRstStream( 240 SpdyFrame* BufferedSpdyFramer::CreateRstStream(
241 SpdyStreamId stream_id, 241 SpdyStreamId stream_id,
242 SpdyRstStreamStatus status) const { 242 SpdyRstStreamStatus status) const {
243 return spdy_framer_.CreateRstStream(stream_id, status); 243 return spdy_framer_.CreateRstStream(stream_id, status);
244 } 244 }
245 245
246 SpdySettingsControlFrame* BufferedSpdyFramer::CreateSettings( 246 SpdySettingsControlFrame* BufferedSpdyFramer::CreateSettings(
247 const SettingsMap& values) const { 247 const SettingsMap& values) const {
248 return spdy_framer_.CreateSettings(values); 248 return spdy_framer_.CreateSettings(values);
249 } 249 }
250 250
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 295
296 void BufferedSpdyFramer::InitHeaderStreaming(SpdyStreamId stream_id) { 296 void BufferedSpdyFramer::InitHeaderStreaming(SpdyStreamId stream_id) {
297 memset(header_buffer_, 0, kHeaderBufferSize); 297 memset(header_buffer_, 0, kHeaderBufferSize);
298 header_buffer_used_ = 0; 298 header_buffer_used_ = 0;
299 header_buffer_valid_ = true; 299 header_buffer_valid_ = true;
300 header_stream_id_ = stream_id; 300 header_stream_id_ = stream_id;
301 DCHECK_NE(header_stream_id_, SpdyFramer::kInvalidStream); 301 DCHECK_NE(header_stream_id_, SpdyFramer::kInvalidStream);
302 } 302 }
303 303
304 } // namespace net 304 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/buffered_spdy_framer.h ('k') | net/spdy/buffered_spdy_framer_spdy2_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698