| 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), |
| 17 pad_high_(false), |
| 18 padding_payload_len_(0) { |
| 16 SetDataDeep(data); | 19 SetDataDeep(data); |
| 17 } | 20 } |
| 18 | 21 |
| 19 SpdyDataIR::SpdyDataIR(SpdyStreamId stream_id) | 22 SpdyDataIR::SpdyDataIR(SpdyStreamId stream_id) |
| 20 : SpdyFrameWithFinIR(stream_id) {} | 23 : SpdyFrameWithFinIR(stream_id), |
| 24 pad_low_(false), |
| 25 pad_high_(false), |
| 26 padding_payload_len_(0) {} |
| 21 | 27 |
| 22 SpdyDataIR::~SpdyDataIR() {} | 28 SpdyDataIR::~SpdyDataIR() {} |
| 23 | 29 |
| 24 void SpdyDataIR::Visit(SpdyFrameVisitor* visitor) const { | 30 void SpdyDataIR::Visit(SpdyFrameVisitor* visitor) const { |
| 25 return visitor->VisitData(*this); | 31 return visitor->VisitData(*this); |
| 26 } | 32 } |
| 27 | 33 |
| 28 void SpdySynStreamIR::Visit(SpdyFrameVisitor* visitor) const { | 34 void SpdySynStreamIR::Visit(SpdyFrameVisitor* visitor) const { |
| 29 return visitor->VisitSynStream(*this); | 35 return visitor->VisitSynStream(*this); |
| 30 } | 36 } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 99 |
| 94 void SpdyPushPromiseIR::Visit(SpdyFrameVisitor* visitor) const { | 100 void SpdyPushPromiseIR::Visit(SpdyFrameVisitor* visitor) const { |
| 95 return visitor->VisitPushPromise(*this); | 101 return visitor->VisitPushPromise(*this); |
| 96 } | 102 } |
| 97 | 103 |
| 98 void SpdyContinuationIR::Visit(SpdyFrameVisitor* visitor) const { | 104 void SpdyContinuationIR::Visit(SpdyFrameVisitor* visitor) const { |
| 99 return visitor->VisitContinuation(*this); | 105 return visitor->VisitContinuation(*this); |
| 100 } | 106 } |
| 101 | 107 |
| 102 } // namespace net | 108 } // namespace net |
| OLD | NEW |