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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 SETTINGS_UPLOAD_BANDWIDTH = 0x1, | 324 SETTINGS_UPLOAD_BANDWIDTH = 0x1, |
325 SETTINGS_DOWNLOAD_BANDWIDTH = 0x2, | 325 SETTINGS_DOWNLOAD_BANDWIDTH = 0x2, |
326 // Network round trip time in milliseconds. | 326 // Network round trip time in milliseconds. |
327 SETTINGS_ROUND_TRIP_TIME = 0x3, | 327 SETTINGS_ROUND_TRIP_TIME = 0x3, |
328 SETTINGS_MAX_CONCURRENT_STREAMS = 0x4, | 328 SETTINGS_MAX_CONCURRENT_STREAMS = 0x4, |
329 // TCP congestion window in packets. | 329 // TCP congestion window in packets. |
330 SETTINGS_CURRENT_CWND = 0x5, | 330 SETTINGS_CURRENT_CWND = 0x5, |
331 // Downstream byte retransmission rate in percentage. | 331 // Downstream byte retransmission rate in percentage. |
332 SETTINGS_DOWNLOAD_RETRANS_RATE = 0x6, | 332 SETTINGS_DOWNLOAD_RETRANS_RATE = 0x6, |
333 // Initial window size in bytes | 333 // Initial window size in bytes |
334 SETTINGS_INITIAL_WINDOW_SIZE = 0x7 | 334 SETTINGS_INITIAL_WINDOW_SIZE = 0x7, |
| 335 |
| 336 // HTTP/2 only. |
| 337 SETTINGS_FLOW_CONTROL_OPTIONS = 10 |
335 }; | 338 }; |
336 | 339 |
337 // Status codes for RST_STREAM frames. | 340 // Status codes for RST_STREAM frames. |
338 enum SpdyRstStreamStatus { | 341 enum SpdyRstStreamStatus { |
339 RST_STREAM_INVALID = 0, | 342 RST_STREAM_INVALID = 0, |
340 RST_STREAM_PROTOCOL_ERROR = 1, | 343 RST_STREAM_PROTOCOL_ERROR = 1, |
341 RST_STREAM_INVALID_STREAM = 2, | 344 RST_STREAM_INVALID_STREAM = 2, |
342 RST_STREAM_REFUSED_STREAM = 3, | 345 RST_STREAM_REFUSED_STREAM = 3, |
343 RST_STREAM_UNSUPPORTED_VERSION = 4, | 346 RST_STREAM_UNSUPPORTED_VERSION = 4, |
344 RST_STREAM_CANCEL = 5, | 347 RST_STREAM_CANCEL = 5, |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 SpdyFrameVisitor() {} | 804 SpdyFrameVisitor() {} |
802 virtual ~SpdyFrameVisitor() {} | 805 virtual ~SpdyFrameVisitor() {} |
803 | 806 |
804 private: | 807 private: |
805 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); | 808 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); |
806 }; | 809 }; |
807 | 810 |
808 } // namespace net | 811 } // namespace net |
809 | 812 |
810 #endif // NET_SPDY_SPDY_PROTOCOL_H_ | 813 #endif // NET_SPDY_SPDY_PROTOCOL_H_ |
OLD | NEW |