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

Unified Diff: net/spdy/spdy_protocol.h

Issue 246013002: SPDY: Headers & Push-Promise now use Continuations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase only Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/spdy_framer_test.cc ('k') | net/spdy/spdy_protocol.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_protocol.h
diff --git a/net/spdy/spdy_protocol.h b/net/spdy/spdy_protocol.h
index 9549db57eb5e4e99dd3cf6ff9a355937b2c62b70..4f84ee9321d8cdc6d5d4fbd323897d15d5ebcbf4 100644
--- a/net/spdy/spdy_protocol.h
+++ b/net/spdy/spdy_protocol.h
@@ -478,6 +478,18 @@ class NET_EXPORT_PRIVATE SpdyConstants {
// Returns -1 on failure (I.E. Invalid GOAWAY status for the given version).
static int SerializeGoAwayStatus(SpdyMajorVersion version,
SpdyGoAwayStatus status);
+
+ // Size, in bytes, of the data frame header. Future versions of SPDY
+ // will likely vary this, so we allow for the flexibility of a function call
+ // for this value as opposed to a constant.
+ static size_t GetDataFrameMinimumSize();
+
+ // Size, in bytes, of the control frame header.
+ static size_t GetControlFrameHeaderSize(SpdyMajorVersion version);
+
+ static size_t GetPrefixLength(SpdyFrameType type, SpdyMajorVersion version);
+
+ static size_t GetFrameMaximumSize(SpdyMajorVersion version);
};
class SpdyFrame;
« no previous file with comments | « net/spdy/spdy_framer_test.cc ('k') | net/spdy/spdy_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698