| 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/spdy_protocol.h" | 5 #include "net/spdy/spdy_protocol.h" |
| 6 | 6 |
| 7 namespace net { | 7 namespace net { |
| 8 | 8 |
| 9 SpdyFrameWithNameValueBlockIR::SpdyFrameWithNameValueBlockIR( | 9 SpdyFrameWithNameValueBlockIR::SpdyFrameWithNameValueBlockIR( |
| 10 SpdyStreamId stream_id) : SpdyFrameWithFinIR(stream_id) {} | 10 SpdyStreamId stream_id) : SpdyFrameWithFinIR(stream_id) {} |
| 11 | 11 |
| 12 SpdyFrameWithNameValueBlockIR::~SpdyFrameWithNameValueBlockIR() {} | 12 SpdyFrameWithNameValueBlockIR::~SpdyFrameWithNameValueBlockIR() {} |
| 13 | 13 |
| 14 SpdyDataIR::SpdyDataIR(SpdyStreamId stream_id, const base::StringPiece& data) | 14 SpdyDataIR::SpdyDataIR(SpdyStreamId stream_id, const base::StringPiece& data) |
| 15 : SpdyFrameWithFinIR(stream_id), | 15 : SpdyFrameWithFinIR(stream_id), |
| 16 pad_low_(false), | 16 padded_(false), |
| 17 pad_high_(false), | |
| 18 padding_payload_len_(0) { | 17 padding_payload_len_(0) { |
| 19 SetDataDeep(data); | 18 SetDataDeep(data); |
| 20 } | 19 } |
| 21 | 20 |
| 22 SpdyDataIR::SpdyDataIR(SpdyStreamId stream_id) | 21 SpdyDataIR::SpdyDataIR(SpdyStreamId stream_id) |
| 23 : SpdyFrameWithFinIR(stream_id), | 22 : SpdyFrameWithFinIR(stream_id), |
| 24 pad_low_(false), | 23 padded_(false), |
| 25 pad_high_(false), | |
| 26 padding_payload_len_(0) {} | 24 padding_payload_len_(0) {} |
| 27 | 25 |
| 28 SpdyDataIR::~SpdyDataIR() {} | 26 SpdyDataIR::~SpdyDataIR() {} |
| 29 | 27 |
| 30 bool SpdyConstants::IsValidFrameType(SpdyMajorVersion version, | 28 bool SpdyConstants::IsValidFrameType(SpdyMajorVersion version, |
| 31 int frame_type_field) { | 29 int frame_type_field) { |
| 32 switch (version) { | 30 switch (version) { |
| 33 case SPDY2: | 31 case SPDY2: |
| 34 case SPDY3: | 32 case SPDY3: |
| 35 // SYN_STREAM is the first valid frame. | 33 // SYN_STREAM is the first valid frame. |
| (...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 parent_stream_id_(parent_stream_id), | 832 parent_stream_id_(parent_stream_id), |
| 835 weight_(weight), | 833 weight_(weight), |
| 836 exclusive_(exclusive) { | 834 exclusive_(exclusive) { |
| 837 } | 835 } |
| 838 | 836 |
| 839 void SpdyPriorityIR::Visit(SpdyFrameVisitor* visitor) const { | 837 void SpdyPriorityIR::Visit(SpdyFrameVisitor* visitor) const { |
| 840 return visitor->VisitPriority(*this); | 838 return visitor->VisitPriority(*this); |
| 841 } | 839 } |
| 842 | 840 |
| 843 } // namespace net | 841 } // namespace net |
| OLD | NEW |