Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: net/spdy/spdy_bitmasks.h

Issue 10183006: Fix kDataFlagsMask, which I missed in an earlier CL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 #ifndef NET_SPDY_SPDY_BITMASKS_H_ 5 #ifndef NET_SPDY_SPDY_BITMASKS_H_
6 #define NET_SPDY_SPDY_BITMASKS_H_ 6 #define NET_SPDY_SPDY_BITMASKS_H_
7 #pragma once 7 #pragma once
8 8
9 namespace net { 9 namespace net {
10 10
11 // StreamId mask from the SpdyHeader 11 // StreamId mask from the SpdyHeader
12 const unsigned int kStreamIdMask = 0x7fffffff; 12 const unsigned int kStreamIdMask = 0x7fffffff;
13 13
14 // Control flag mask from the SpdyHeader 14 // Control flag mask from the SpdyHeader
15 const unsigned int kControlFlagMask = 0x8000; 15 const unsigned int kControlFlagMask = 0x8000;
16 16
17 // Priority mask from the SYN_FRAME 17 // Priority mask from the SYN_FRAME
18 const unsigned int kSpdy3PriorityMask = 0xe0; 18 const unsigned int kSpdy3PriorityMask = 0xe0;
19 const unsigned int kSpdy2PriorityMask = 0xc0; 19 const unsigned int kSpdy2PriorityMask = 0xc0;
20 20
21 // Mask the lower 24 bits. 21 // Mask the lower 24 bits.
22 const unsigned int kLengthMask = 0xffffff; 22 const unsigned int kLengthMask = 0xffffff;
23 23
24 // Legal flags on data packets. 24 // Legal flags on data packets.
25 const int kDataFlagsMask = 0x03; 25 const int kDataFlagsMask = 0x01;
26 26
27 // Legal flags on control packets. 27 // Legal flags on control packets.
28 const int kControlFlagsMask = 0x03; 28 const int kControlFlagsMask = 0x03;
29 29
30 } // namespace net 30 } // namespace net
31 31
32 #endif // NET_SPDY_SPDY_BITMASKS_H_ 32 #endif // NET_SPDY_SPDY_BITMASKS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698