Revert "Merged all Chromoting Host code into remoting_core.dll (Windows)."
[chromium-blink-merge.git] / net / spdy / spdy_bitmasks.h
blob72fb948410316c615ca7a58150221c0eb81e9353
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
3 // found in the LICENSE file.
5 #ifndef NET_SPDY_SPDY_BITMASKS_H_
6 #define NET_SPDY_SPDY_BITMASKS_H_
8 namespace net {
10 // StreamId mask from the SpdyHeader
11 const unsigned int kStreamIdMask = 0x7fffffff;
13 // Control flag mask from the SpdyHeader
14 const unsigned int kControlFlagMask = 0x8000;
16 // Priority mask from the SYN_FRAME
17 const unsigned int kSpdy3PriorityMask = 0xe0;
18 const unsigned int kSpdy2PriorityMask = 0xc0;
20 // Mask the lower 24 bits.
21 const unsigned int kLengthMask = 0xffffff;
23 // Legal flags on data packets.
24 const int kDataFlagsMask = 0x01;
26 // Legal flags on control packets.
27 const int kControlFlagsMask = 0x03;
29 } // namespace net
31 #endif // NET_SPDY_SPDY_BITMASKS_H_