summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_bitmasks.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/spdy/spdy_bitmasks.h')
-rw-r--r--net/spdy/spdy_bitmasks.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/net/spdy/spdy_bitmasks.h b/net/spdy/spdy_bitmasks.h
new file mode 100644
index 0000000..076a24d
--- /dev/null
+++ b/net/spdy/spdy_bitmasks.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_SPDY_SPDY_BITMASKS_H_
+#define NET_SPDY_SPDY_BITMASKS_H_
+
+namespace flip {
+
+// StreamId mask from the FlipHeader
+const unsigned int kStreamIdMask = 0x7fffffff;
+
+// Control flag mask from the FlipHeader
+const unsigned int kControlFlagMask = 0x8000;
+
+// Priority mask from the SYN_FRAME
+const unsigned int kPriorityMask = 0xc0;
+
+// Mask the lower 24 bits.
+const unsigned int kLengthMask = 0xffffff;
+
+} // flip
+
+#endif // NET_SPDY_SPDY_BITMASKS_H_