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 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 struct SpdyWindowUpdateControlFrameBlock* mutable_block() { | 835 struct SpdyWindowUpdateControlFrameBlock* mutable_block() { |
836 return static_cast<SpdyWindowUpdateControlFrameBlock*>(frame_); | 836 return static_cast<SpdyWindowUpdateControlFrameBlock*>(frame_); |
837 } | 837 } |
838 | 838 |
839 DISALLOW_COPY_AND_ASSIGN(SpdyWindowUpdateControlFrame); | 839 DISALLOW_COPY_AND_ASSIGN(SpdyWindowUpdateControlFrame); |
840 }; | 840 }; |
841 | 841 |
842 } // namespace spdy | 842 } // namespace spdy |
843 | 843 |
844 #endif // NET_SPDY_SPDY_PROTOCOL_H_ | 844 #endif // NET_SPDY_SPDY_PROTOCOL_H_ |
OLD | NEW |