| Index: net/spdy/spdy_protocol.h
|
| diff --git a/net/spdy/spdy_protocol.h b/net/spdy/spdy_protocol.h
|
| index beaf14a3a733de4f072cdf60dad48319a5da5b52..80f46d7745c81abf782c181c8ce929f3e529163e 100644
|
| --- a/net/spdy/spdy_protocol.h
|
| +++ b/net/spdy/spdy_protocol.h
|
| @@ -36,8 +36,8 @@ enum SpdyMajorVersion {
|
| SPDY_MIN_VERSION = SPDY2,
|
| SPDY3 = 3,
|
| SPDY4 = 4,
|
| - SPDY5 = 5,
|
| - SPDY_MAX_VERSION = SPDY5
|
| + HTTP2 = SPDY4,
|
| + SPDY_MAX_VERSION = SPDY4
|
| };
|
|
|
| // A SPDY stream id is a 31 bit entity.
|
| @@ -47,18 +47,12 @@ typedef uint32 SpdyStreamId;
|
| // flow control).
|
| const SpdyStreamId kSessionFlowControlStreamId = 0;
|
|
|
| -// Initial window size for a Spdy stream in bytes.
|
| -const int32 kSpdyStreamInitialWindowSize = 64 * 1024; // 64 KBytes
|
| -
|
| // The maxmium possible control frame size allowed by the spec.
|
| const int32 kSpdyMaxControlFrameSize = (1 << 24) - 1;
|
|
|
| // The maximum control frame size we accept.
|
| const int32 kControlFrameSizeLimit = 1 << 14;
|
|
|
| -// Initial window size for a Spdy session in bytes.
|
| -const int32 kSpdySessionInitialWindowSize = 64 * 1024; // 64 KBytes
|
| -
|
| // Maximum window size for a Spdy stream or session.
|
| const int32 kSpdyMaximumWindowSize = 0x7FFFFFFF; // Max signed 32bit int
|
|
|
| @@ -533,6 +527,12 @@ class NET_EXPORT_PRIVATE SpdyConstants {
|
| // Returns the size (in bytes) of a wire setting ID and value.
|
| static size_t GetSettingSize(SpdyMajorVersion version);
|
|
|
| + // Initial window size for a stream in bytes.
|
| + static int32 GetInitialStreamWindowSize(SpdyMajorVersion version);
|
| +
|
| + // Initial window size for a session in bytes.
|
| + static int32 GetInitialSessionWindowSize(SpdyMajorVersion version);
|
| +
|
| static SpdyMajorVersion ParseMajorVersion(int version_number);
|
|
|
| static int SerializeMajorVersion(SpdyMajorVersion version);
|
|
|