| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 9 |
| 10 #ifdef WIN32 | 10 #ifdef WIN32 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // +----------------------------------+ | 56 // +----------------------------------+ |
| 57 // |X| Stream-ID(31bits) | | 57 // |X| Stream-ID(31bits) | |
| 58 // +----------------------------------+ | 58 // +----------------------------------+ |
| 59 // | unused (16 bits)| Length (16bits)| | 59 // | unused (16 bits)| Length (16bits)| |
| 60 // +----------------------------------+ | 60 // +----------------------------------+ |
| 61 // | 61 // |
| 62 // Control Frame: RST_STREAM | 62 // Control Frame: RST_STREAM |
| 63 // +----------------------------------+ | 63 // +----------------------------------+ |
| 64 // |1|000000000000001|0000000000000011| | 64 // |1|000000000000001|0000000000000011| |
| 65 // +----------------------------------+ | 65 // +----------------------------------+ |
| 66 // | flags (8) | Length (24 bits) | >= 8 | 66 // | flags (8) | Length (24 bits) | >= 4 |
| 67 // +----------------------------------+ | 67 // +----------------------------------+ |
| 68 // |X| Stream-ID(31bits) | | 68 // |X| Stream-ID(31bits) | |
| 69 // +----------------------------------+ | 69 // +----------------------------------+ |
| 70 // | Status code (32 bits) | | 70 // | Status code (32 bits) | |
| 71 // +----------------------------------+ | 71 // +----------------------------------+ |
| 72 // | 72 // |
| 73 // Control Frame: SETTINGS | 73 // Control Frame: SETTINGS |
| 74 // +----------------------------------+ | 74 // +----------------------------------+ |
| 75 // |1|000000000000001|0000000000000100| | 75 // |1|000000000000001|0000000000000100| |
| 76 // +----------------------------------+ | 76 // +----------------------------------+ |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 } | 590 } |
| 591 struct SpdySettingsControlFrameBlock* mutable_block() { | 591 struct SpdySettingsControlFrameBlock* mutable_block() { |
| 592 return static_cast<SpdySettingsControlFrameBlock*>(frame_); | 592 return static_cast<SpdySettingsControlFrameBlock*>(frame_); |
| 593 } | 593 } |
| 594 DISALLOW_COPY_AND_ASSIGN(SpdySettingsControlFrame); | 594 DISALLOW_COPY_AND_ASSIGN(SpdySettingsControlFrame); |
| 595 }; | 595 }; |
| 596 | 596 |
| 597 } // namespace spdy | 597 } // namespace spdy |
| 598 | 598 |
| 599 #endif // NET_SPDY_SPDY_PROTOCOL_H_ | 599 #endif // NET_SPDY_SPDY_PROTOCOL_H_ |
| OLD | NEW |