| 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. | 5 // This file contains some protocol structures for use with Spdy. |
| 6 | 6 |
| 7 #ifndef NET_SPDY_SPDY_PROTOCOL_H_ | 7 #ifndef NET_SPDY_SPDY_PROTOCOL_H_ |
| 8 #define NET_SPDY_SPDY_PROTOCOL_H_ | 8 #define NET_SPDY_SPDY_PROTOCOL_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 CONTROL_FLAG_UNIDIRECTIONAL = 2 | 394 CONTROL_FLAG_UNIDIRECTIONAL = 2 |
| 395 }; | 395 }; |
| 396 | 396 |
| 397 // Flags on the SETTINGS control frame. | 397 // Flags on the SETTINGS control frame. |
| 398 enum SpdySettingsControlFlags { | 398 enum SpdySettingsControlFlags { |
| 399 SETTINGS_FLAG_CLEAR_PREVIOUSLY_PERSISTED_SETTINGS = 0x1 | 399 SETTINGS_FLAG_CLEAR_PREVIOUSLY_PERSISTED_SETTINGS = 0x1 |
| 400 }; | 400 }; |
| 401 | 401 |
| 402 // Flags for settings within a SETTINGS frame. | 402 // Flags for settings within a SETTINGS frame. |
| 403 enum SpdySettingsFlags { | 403 enum SpdySettingsFlags { |
| 404 SETTINGS_FLAG_NONE = 0x0, |
| 404 SETTINGS_FLAG_PLEASE_PERSIST = 0x1, | 405 SETTINGS_FLAG_PLEASE_PERSIST = 0x1, |
| 405 SETTINGS_FLAG_PERSISTED = 0x2 | 406 SETTINGS_FLAG_PERSISTED = 0x2 |
| 406 }; | 407 }; |
| 407 | 408 |
| 408 // List of known settings. | 409 // List of known settings. |
| 409 enum SpdySettingsIds { | 410 enum SpdySettingsIds { |
| 410 SETTINGS_UPLOAD_BANDWIDTH = 0x1, | 411 SETTINGS_UPLOAD_BANDWIDTH = 0x1, |
| 411 SETTINGS_DOWNLOAD_BANDWIDTH = 0x2, | 412 SETTINGS_DOWNLOAD_BANDWIDTH = 0x2, |
| 412 // Network round trip time in milliseconds. | 413 // Network round trip time in milliseconds. |
| 413 SETTINGS_ROUND_TRIP_TIME = 0x3, | 414 SETTINGS_ROUND_TRIP_TIME = 0x3, |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1057 struct SpdyWindowUpdateControlFrameBlock* mutable_block() { | 1058 struct SpdyWindowUpdateControlFrameBlock* mutable_block() { |
| 1058 return static_cast<SpdyWindowUpdateControlFrameBlock*>(frame_); | 1059 return static_cast<SpdyWindowUpdateControlFrameBlock*>(frame_); |
| 1059 } | 1060 } |
| 1060 | 1061 |
| 1061 DISALLOW_COPY_AND_ASSIGN(SpdyWindowUpdateControlFrame); | 1062 DISALLOW_COPY_AND_ASSIGN(SpdyWindowUpdateControlFrame); |
| 1062 }; | 1063 }; |
| 1063 | 1064 |
| 1064 } // namespace net | 1065 } // namespace net |
| 1065 | 1066 |
| 1066 #endif // NET_SPDY_SPDY_PROTOCOL_H_ | 1067 #endif // NET_SPDY_SPDY_PROTOCOL_H_ |
| OLD | NEW |