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

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

Issue 10054034: SPDY - replaced SpdySettings (list) with SettingsMap (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 return spdy_framer_.CreateSynReply(stream_id, flags, compressed, headers); 189 return spdy_framer_.CreateSynReply(stream_id, flags, compressed, headers);
190 } 190 }
191 191
192 SpdyRstStreamControlFrame* BufferedSpdyFramer::CreateRstStream( 192 SpdyRstStreamControlFrame* BufferedSpdyFramer::CreateRstStream(
193 SpdyStreamId stream_id, 193 SpdyStreamId stream_id,
194 SpdyStatusCodes status) const { 194 SpdyStatusCodes status) const {
195 return spdy_framer_.CreateRstStream(stream_id, status); 195 return spdy_framer_.CreateRstStream(stream_id, status);
196 } 196 }
197 197
198 SpdySettingsControlFrame* BufferedSpdyFramer::CreateSettings( 198 SpdySettingsControlFrame* BufferedSpdyFramer::CreateSettings(
199 const SpdySettings& values) const { 199 const SettingsMap& values) const {
200 return spdy_framer_.CreateSettings(values); 200 return spdy_framer_.CreateSettings(values);
201 } 201 }
202 202
203 SpdyPingControlFrame* BufferedSpdyFramer::CreatePingFrame( 203 SpdyPingControlFrame* BufferedSpdyFramer::CreatePingFrame(
204 uint32 unique_id) const { 204 uint32 unique_id) const {
205 return spdy_framer_.CreatePingFrame(unique_id); 205 return spdy_framer_.CreatePingFrame(unique_id);
206 } 206 }
207 207
208 SpdyGoAwayControlFrame* BufferedSpdyFramer::CreateGoAway( 208 SpdyGoAwayControlFrame* BufferedSpdyFramer::CreateGoAway(
209 SpdyStreamId last_accepted_stream_id, 209 SpdyStreamId last_accepted_stream_id,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 default: 270 default:
271 DCHECK(false); // Error! 271 DCHECK(false); // Error!
272 break; 272 break;
273 } 273 }
274 control_frame_.reset(new SpdyFrame(frame_size_without_header_block)); 274 control_frame_.reset(new SpdyFrame(frame_size_without_header_block));
275 memcpy(control_frame_.get()->data(), frame->data(), 275 memcpy(control_frame_.get()->data(), frame->data(),
276 frame_size_without_header_block); 276 frame_size_without_header_block);
277 } 277 }
278 278
279 } // namespace net 279 } // 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