| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
| 11 #include <limits> | 11 #include <limits> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "net/base/sys_byteorder.h" | 15 #include "base/sys_byteorder.h" |
| 16 #include "net/spdy/spdy_bitmasks.h" | 16 #include "net/spdy/spdy_bitmasks.h" |
| 17 | 17 |
| 18 // Data Frame Format | 18 // Data Frame Format |
| 19 // +----------------------------------+ | 19 // +----------------------------------+ |
| 20 // |0| Stream-ID (31bits) | | 20 // |0| Stream-ID (31bits) | |
| 21 // +----------------------------------+ | 21 // +----------------------------------+ |
| 22 // | flags (8) | Length (24 bits) | | 22 // | flags (8) | Length (24 bits) | |
| 23 // +----------------------------------+ | 23 // +----------------------------------+ |
| 24 // | Data | | 24 // | Data | |
| 25 // +----------------------------------+ | 25 // +----------------------------------+ |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 struct SpdyWindowUpdateControlFrameBlock* mutable_block() { | 785 struct SpdyWindowUpdateControlFrameBlock* mutable_block() { |
| 786 return static_cast<SpdyWindowUpdateControlFrameBlock*>(frame_); | 786 return static_cast<SpdyWindowUpdateControlFrameBlock*>(frame_); |
| 787 } | 787 } |
| 788 | 788 |
| 789 DISALLOW_COPY_AND_ASSIGN(SpdyWindowUpdateControlFrame); | 789 DISALLOW_COPY_AND_ASSIGN(SpdyWindowUpdateControlFrame); |
| 790 }; | 790 }; |
| 791 | 791 |
| 792 } // namespace spdy | 792 } // namespace spdy |
| 793 | 793 |
| 794 #endif // NET_SPDY_SPDY_PROTOCOL_H_ | 794 #endif // NET_SPDY_SPDY_PROTOCOL_H_ |
| OLD | NEW |