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; |