| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |