| Index: net/spdy/spdy_protocol.h
|
| diff --git a/net/spdy/spdy_protocol.h b/net/spdy/spdy_protocol.h
|
| index 9d28b97224e20528fcf883cfaf4349c723bc77d8..0310d37b1f9860fb4e9c83a66fb1bb53edaacfdc 100644
|
| --- a/net/spdy/spdy_protocol.h
|
| +++ b/net/spdy/spdy_protocol.h
|
| @@ -272,24 +272,21 @@ const int kHttp2ConnectionHeaderPrefixSize =
|
|
|
| // Types of SPDY frames.
|
| enum SpdyFrameType {
|
| - DATA = 0,
|
| - SYN_STREAM = 1,
|
| - FIRST_CONTROL_TYPE = SYN_STREAM,
|
| + DATA,
|
| + SYN_STREAM,
|
| SYN_REPLY,
|
| RST_STREAM,
|
| SETTINGS,
|
| - NOOP, // Because it is valid in SPDY/2, kept for identifiability/enum order.
|
| PING,
|
| GOAWAY,
|
| HEADERS,
|
| WINDOW_UPDATE,
|
| - CREDENTIAL, // No longer valid. Kept for identifiability/enum order.
|
| + CREDENTIAL = 10, // No longer valid. Kept for identifiability.
|
| BLOCKED,
|
| PUSH_PROMISE,
|
| CONTINUATION,
|
| ALTSVC,
|
| - PRIORITY,
|
| - LAST_CONTROL_TYPE = PRIORITY
|
| + PRIORITY
|
| };
|
|
|
| // Flags on data packets.
|
| @@ -440,6 +437,10 @@ class NET_EXPORT_PRIVATE SpdyConstants {
|
| static int SerializeFrameType(SpdyMajorVersion version,
|
| SpdyFrameType frame_type);
|
|
|
| + // Returns the frame type for non-control (i.e. data) frames
|
| + // in the given SPDY version.
|
| + static int DataFrameType(SpdyMajorVersion version);
|
| +
|
| // Returns true if a given on-the-wire enumeration of a setting id is valid
|
| // for a given protocol version, false otherwise.
|
| static bool IsValidSettingId(SpdyMajorVersion version, int setting_id_field);
|
|
|