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

Unified Diff: net/spdy/spdy_protocol.h

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
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);

Powered by Google App Engine
This is Rietveld 408576698