| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 return spdy_framer_.MessageFullyRead(); | 164 return spdy_framer_.MessageFullyRead(); |
| 165 } | 165 } |
| 166 | 166 |
| 167 bool BufferedSpdyFramer::HasError() { | 167 bool BufferedSpdyFramer::HasError() { |
| 168 return spdy_framer_.HasError(); | 168 return spdy_framer_.HasError(); |
| 169 } | 169 } |
| 170 | 170 |
| 171 SpdySynStreamControlFrame* BufferedSpdyFramer::CreateSynStream( | 171 SpdySynStreamControlFrame* BufferedSpdyFramer::CreateSynStream( |
| 172 SpdyStreamId stream_id, | 172 SpdyStreamId stream_id, |
| 173 SpdyStreamId associated_stream_id, | 173 SpdyStreamId associated_stream_id, |
| 174 int priority, | 174 SpdyPriority priority, |
| 175 uint8 credential_slot, | 175 uint8 credential_slot, |
| 176 SpdyControlFlags flags, | 176 SpdyControlFlags flags, |
| 177 bool compressed, | 177 bool compressed, |
| 178 const SpdyHeaderBlock* headers) { | 178 const SpdyHeaderBlock* headers) { |
| 179 return spdy_framer_.CreateSynStream(stream_id, associated_stream_id, priority, | 179 return spdy_framer_.CreateSynStream(stream_id, associated_stream_id, priority, |
| 180 credential_slot, flags, compressed, | 180 credential_slot, flags, compressed, |
| 181 headers); | 181 headers); |
| 182 } | 182 } |
| 183 | 183 |
| 184 SpdySynReplyControlFrame* BufferedSpdyFramer::CreateSynReply( | 184 SpdySynReplyControlFrame* BufferedSpdyFramer::CreateSynReply( |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 default: | 271 default: |
| 272 DCHECK(false); // Error! | 272 DCHECK(false); // Error! |
| 273 break; | 273 break; |
| 274 } | 274 } |
| 275 control_frame_.reset(new SpdyFrame(frame_size_without_header_block)); | 275 control_frame_.reset(new SpdyFrame(frame_size_without_header_block)); |
| 276 memcpy(control_frame_.get()->data(), frame->data(), | 276 memcpy(control_frame_.get()->data(), frame->data(), |
| 277 frame_size_without_header_block); | 277 frame_size_without_header_block); |
| 278 } | 278 } |
| 279 | 279 |
| 280 } // namespace net | 280 } // namespace net |
| OLD | NEW |