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

Side by Side Diff: net/spdy/spdy_protocol.h

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_protocol.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains some protocol structures for use with SPDY 2 and 3 5 // This file contains some protocol structures for use with SPDY 2 and 3
6 // The SPDY 2 spec can be found at: 6 // The SPDY 2 spec can be found at:
7 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft2 7 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft2
8 // The SPDY 3 spec can be found at: 8 // The SPDY 3 spec can be found at:
9 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3 9 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3
10 10
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 RST_STREAM_STREAM_ALREADY_CLOSED = 9, 390 RST_STREAM_STREAM_ALREADY_CLOSED = 9,
391 RST_STREAM_INVALID_CREDENTIALS = 10, 391 RST_STREAM_INVALID_CREDENTIALS = 10,
392 // FRAME_TOO_LARGE (defined by SPDY versions 3.1 and below), and 392 // FRAME_TOO_LARGE (defined by SPDY versions 3.1 and below), and
393 // FRAME_SIZE_ERROR (defined by HTTP/2) are mapped to the same internal 393 // FRAME_SIZE_ERROR (defined by HTTP/2) are mapped to the same internal
394 // reset status. 394 // reset status.
395 RST_STREAM_FRAME_TOO_LARGE = 11, 395 RST_STREAM_FRAME_TOO_LARGE = 11,
396 RST_STREAM_FRAME_SIZE_ERROR = 11, 396 RST_STREAM_FRAME_SIZE_ERROR = 11,
397 RST_STREAM_SETTINGS_TIMEOUT = 12, 397 RST_STREAM_SETTINGS_TIMEOUT = 12,
398 RST_STREAM_CONNECT_ERROR = 13, 398 RST_STREAM_CONNECT_ERROR = 13,
399 RST_STREAM_ENHANCE_YOUR_CALM = 14, 399 RST_STREAM_ENHANCE_YOUR_CALM = 14,
400 RST_STREAM_NUM_STATUS_CODES = 15 400 RST_STREAM_INADEQUATE_SECURITY = 15,
401 RST_STREAM_HTTP_1_1_REQUIRED = 16,
402 RST_STREAM_NUM_STATUS_CODES = 17
401 }; 403 };
402 404
403 // Status codes for GOAWAY frames. 405 // Status codes for GOAWAY frames.
404 enum SpdyGoAwayStatus { 406 enum SpdyGoAwayStatus {
405 GOAWAY_OK = 0, 407 GOAWAY_OK = 0,
406 GOAWAY_NO_ERROR = GOAWAY_OK, 408 GOAWAY_NO_ERROR = GOAWAY_OK,
407 GOAWAY_PROTOCOL_ERROR = 1, 409 GOAWAY_PROTOCOL_ERROR = 1,
408 GOAWAY_INTERNAL_ERROR = 2, 410 GOAWAY_INTERNAL_ERROR = 2,
409 GOAWAY_FLOW_CONTROL_ERROR = 3, 411 GOAWAY_FLOW_CONTROL_ERROR = 3,
410 GOAWAY_SETTINGS_TIMEOUT = 4, 412 GOAWAY_SETTINGS_TIMEOUT = 4,
411 GOAWAY_STREAM_CLOSED = 5, 413 GOAWAY_STREAM_CLOSED = 5,
412 GOAWAY_FRAME_SIZE_ERROR = 6, 414 GOAWAY_FRAME_SIZE_ERROR = 6,
413 GOAWAY_REFUSED_STREAM = 7, 415 GOAWAY_REFUSED_STREAM = 7,
414 GOAWAY_CANCEL = 8, 416 GOAWAY_CANCEL = 8,
415 GOAWAY_COMPRESSION_ERROR = 9, 417 GOAWAY_COMPRESSION_ERROR = 9,
416 GOAWAY_CONNECT_ERROR = 10, 418 GOAWAY_CONNECT_ERROR = 10,
417 GOAWAY_ENHANCE_YOUR_CALM = 11, 419 GOAWAY_ENHANCE_YOUR_CALM = 11,
418 GOAWAY_INADEQUATE_SECURITY = 12 420 GOAWAY_INADEQUATE_SECURITY = 12,
421 GOAWAY_HTTP_1_1_REQUIRED = 13
419 }; 422 };
420 423
421 // A SPDY priority is a number between 0 and 7 (inclusive). 424 // A SPDY priority is a number between 0 and 7 (inclusive).
422 // SPDY priority range is version-dependent. For SPDY 2 and below, priority is a 425 // SPDY priority range is version-dependent. For SPDY 2 and below, priority is a
423 // number between 0 and 3. 426 // number between 0 and 3.
424 typedef uint8 SpdyPriority; 427 typedef uint8 SpdyPriority;
425 428
426 typedef std::map<std::string, std::string> SpdyNameValueBlock; 429 typedef std::map<std::string, std::string> SpdyNameValueBlock;
427 430
428 typedef uint64 SpdyPingId; 431 typedef uint64 SpdyPingId;
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 SpdyFrameVisitor() {} 1092 SpdyFrameVisitor() {}
1090 virtual ~SpdyFrameVisitor() {} 1093 virtual ~SpdyFrameVisitor() {}
1091 1094
1092 private: 1095 private:
1093 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); 1096 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor);
1094 }; 1097 };
1095 1098
1096 } // namespace net 1099 } // namespace net
1097 1100
1098 #endif // NET_SPDY_SPDY_PROTOCOL_H_ 1101 #endif // NET_SPDY_SPDY_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698