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

Unified Diff: net/spdy/spdy_frame_builder.h

Issue 21820003: DO NOT COMMIT: SPDY 4: Hack SpdyFramer to turn SYN_STREAM and SYN_REPLY into HEADERS semi-transpare… Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase for draft 06 Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/spdy/spdy_frame_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_frame_builder.h
diff --git a/net/spdy/spdy_frame_builder.h b/net/spdy/spdy_frame_builder.h
index 348f105cd702521c057a48acd95f0def3e7f1323..5a4a9c19549b46b71cd6834596d5ad77290423cb 100644
--- a/net/spdy/spdy_frame_builder.h
+++ b/net/spdy/spdy_frame_builder.h
@@ -88,6 +88,13 @@ class NET_EXPORT_PRIVATE SpdyFrameBuilder {
value = htons(value);
return WriteBytes(&value, sizeof(value));
}
+ bool WriteUInt24(uint32 value) {
+ DCHECK_EQ(value >> 24, 0u);
+ return
+ WriteUInt8(static_cast<uint8>(value >> 16)) &&
+ WriteUInt8(static_cast<uint8>(value >> 8)) &&
+ WriteUInt8(static_cast<uint8>(value >> 0));
+ }
bool WriteUInt32(uint32 value) {
value = htonl(value);
return WriteBytes(&value, sizeof(value));
« no previous file with comments | « no previous file | net/spdy/spdy_frame_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698