summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_protocol.h
diff options
context:
space:
mode:
authormbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-09 16:12:03 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-09 16:12:03 +0000
commit0ac338051b72a1e3717bcf8a54270cfeb50f1d13 (patch)
treee860fd6b2f50fb1b2e96081fae4f6600671bf5fb /net/spdy/spdy_protocol.h
parent7ca5cde25380c8dc47b5ac322e2893df875a4643 (diff)
downloadchromium_src-0ac338051b72a1e3717bcf8a54270cfeb50f1d13.zip
chromium_src-0ac338051b72a1e3717bcf8a54270cfeb50f1d13.tar.gz
chromium_src-0ac338051b72a1e3717bcf8a54270cfeb50f1d13.tar.bz2
Add support for the SPDY session frame.
BUG=34749 TEST=SpdyNetworkTransactionTest.SettingsSaved, SettingsPlayback Review URL: http://codereview.chromium.org/1595013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44092 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_protocol.h')
-rw-r--r--net/spdy/spdy_protocol.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/spdy/spdy_protocol.h b/net/spdy/spdy_protocol.h
index c8d5830..435c55b 100644
--- a/net/spdy/spdy_protocol.h
+++ b/net/spdy/spdy_protocol.h
@@ -241,7 +241,13 @@ union SettingsFlagsAndId {
SettingsFlagsAndId(uint32 val) : id_(val) {};
uint8 flags() const { return flags_[0]; }
+ void set_flags(uint8 flags) { flags_[0] = flags; }
uint32 id() const { return (ntohl(id_) & kSettingsIdMask); };
+ void set_id(uint32 id) {
+ DCHECK_EQ(0u, (id & ~kSettingsIdMask));
+ id = htonl(id & kSettingsIdMask);
+ id_ = flags() | id;
+ }
};
// A SETTINGS Control Frame structure.