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 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 void Visit(SpdyFrameVisitor* visitor) const override; | 954 void Visit(SpdyFrameVisitor* visitor) const override; |
955 | 955 |
956 bool end_headers() const { return end_headers_; } | 956 bool end_headers() const { return end_headers_; } |
957 void set_end_headers(bool end_headers) {end_headers_ = end_headers;} | 957 void set_end_headers(bool end_headers) {end_headers_ = end_headers;} |
958 | 958 |
959 private: | 959 private: |
960 bool end_headers_; | 960 bool end_headers_; |
961 DISALLOW_COPY_AND_ASSIGN(SpdyContinuationIR); | 961 DISALLOW_COPY_AND_ASSIGN(SpdyContinuationIR); |
962 }; | 962 }; |
963 | 963 |
| 964 // TODO(bnc): Add probability. |
| 965 // TODO(bnc): Separate (protocol, port, host, max_age, probability) tuple into |
| 966 // struct, have a vector of that struct. A single HTTP/1.1 header field or |
| 967 // HTTP/2 or QUIC frame can define multiple such tuples. |
964 class NET_EXPORT_PRIVATE SpdyAltSvcIR : public SpdyFrameWithStreamIdIR { | 968 class NET_EXPORT_PRIVATE SpdyAltSvcIR : public SpdyFrameWithStreamIdIR { |
965 public: | 969 public: |
966 explicit SpdyAltSvcIR(SpdyStreamId stream_id); | 970 explicit SpdyAltSvcIR(SpdyStreamId stream_id); |
967 | 971 |
968 uint32 max_age() const { return max_age_; } | 972 uint32 max_age() const { return max_age_; } |
969 uint16 port() const { return port_; } | 973 uint16 port() const { return port_; } |
970 SpdyProtocolId protocol_id() const { | 974 SpdyProtocolId protocol_id() const { |
971 return protocol_id_; | 975 return protocol_id_; |
972 } | 976 } |
973 std::string host() const { return host_; } | 977 std::string host() const { return host_; } |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1091 SpdyFrameVisitor() {} | 1095 SpdyFrameVisitor() {} |
1092 virtual ~SpdyFrameVisitor() {} | 1096 virtual ~SpdyFrameVisitor() {} |
1093 | 1097 |
1094 private: | 1098 private: |
1095 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); | 1099 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); |
1096 }; | 1100 }; |
1097 | 1101 |
1098 } // namespace net | 1102 } // namespace net |
1099 | 1103 |
1100 #endif // NET_SPDY_SPDY_PROTOCOL_H_ | 1104 #endif // NET_SPDY_SPDY_PROTOCOL_H_ |
OLD | NEW |