QUIC - wait for disk cache to load server config if the server is among
[chromium-blink-merge.git] / net / spdy / spdy_bitmasks.h
blob71ad1e6a93f6cff438ef60b84fa82a7b19cc2cd4
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 // Mask the lower 24 bits.
17 const unsigned int kLengthMask = 0xffffff;
19 // Legal flags on data packets.
20 const int kDataFlagsMask = 0x01;
22 // Legal flags on control packets.
23 const int kControlFlagsMask = 0x03;
25 } // namespace net
27 #endif // NET_SPDY_SPDY_BITMASKS_H_