| 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 // This file contains some protocol structures for use with SPDY 2 and 3 | 5 // This file contains some protocol structures for use with SPDY 2 and 3 |
| 6 // The SPDY 2 spec can be found at: | 6 // The SPDY 2 spec can be found at: |
| 7 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft2 | 7 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft2 |
| 8 // The SPDY 3 spec can be found at: | 8 // The SPDY 3 spec can be found at: |
| 9 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3 | 9 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3 |
| 10 | 10 |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 : SpdyFrameWithHeaderBlockIR(stream_id) {} | 716 : SpdyFrameWithHeaderBlockIR(stream_id) {} |
| 717 | 717 |
| 718 void Visit(SpdyFrameVisitor* visitor) const override; | 718 void Visit(SpdyFrameVisitor* visitor) const override; |
| 719 | 719 |
| 720 private: | 720 private: |
| 721 DISALLOW_COPY_AND_ASSIGN(SpdySynReplyIR); | 721 DISALLOW_COPY_AND_ASSIGN(SpdySynReplyIR); |
| 722 }; | 722 }; |
| 723 | 723 |
| 724 class NET_EXPORT_PRIVATE SpdyRstStreamIR : public SpdyFrameWithStreamIdIR { | 724 class NET_EXPORT_PRIVATE SpdyRstStreamIR : public SpdyFrameWithStreamIdIR { |
| 725 public: | 725 public: |
| 726 SpdyRstStreamIR(SpdyStreamId stream_id, SpdyRstStreamStatus status, | 726 SpdyRstStreamIR(SpdyStreamId stream_id, SpdyRstStreamStatus status); |
| 727 base::StringPiece description); | |
| 728 | 727 |
| 729 ~SpdyRstStreamIR() override; | 728 ~SpdyRstStreamIR() override; |
| 730 | 729 |
| 731 SpdyRstStreamStatus status() const { | 730 SpdyRstStreamStatus status() const { |
| 732 return status_; | 731 return status_; |
| 733 } | 732 } |
| 734 void set_status(SpdyRstStreamStatus status) { | 733 void set_status(SpdyRstStreamStatus status) { |
| 735 status_ = status; | 734 status_ = status; |
| 736 } | 735 } |
| 737 | 736 |
| 738 base::StringPiece description() const { return description_; } | |
| 739 | |
| 740 void Visit(SpdyFrameVisitor* visitor) const override; | 737 void Visit(SpdyFrameVisitor* visitor) const override; |
| 741 | 738 |
| 742 private: | 739 private: |
| 743 SpdyRstStreamStatus status_; | 740 SpdyRstStreamStatus status_; |
| 744 base::StringPiece description_; | |
| 745 | 741 |
| 746 DISALLOW_COPY_AND_ASSIGN(SpdyRstStreamIR); | 742 DISALLOW_COPY_AND_ASSIGN(SpdyRstStreamIR); |
| 747 }; | 743 }; |
| 748 | 744 |
| 749 class NET_EXPORT_PRIVATE SpdySettingsIR : public SpdyFrameIR { | 745 class NET_EXPORT_PRIVATE SpdySettingsIR : public SpdyFrameIR { |
| 750 public: | 746 public: |
| 751 // Associates flags with a value. | 747 // Associates flags with a value. |
| 752 struct Value { | 748 struct Value { |
| 753 Value() : persist_value(false), | 749 Value() : persist_value(false), |
| 754 persisted(false), | 750 persisted(false), |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1078 SpdyFrameVisitor() {} | 1074 SpdyFrameVisitor() {} |
| 1079 virtual ~SpdyFrameVisitor() {} | 1075 virtual ~SpdyFrameVisitor() {} |
| 1080 | 1076 |
| 1081 private: | 1077 private: |
| 1082 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); | 1078 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); |
| 1083 }; | 1079 }; |
| 1084 | 1080 |
| 1085 } // namespace net | 1081 } // namespace net |
| 1086 | 1082 |
| 1087 #endif // NET_SPDY_SPDY_PROTOCOL_H_ | 1083 #endif // NET_SPDY_SPDY_PROTOCOL_H_ |
| OLD | NEW |