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

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

Issue 822713002: Update from https://crrev.com/309415 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 12 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 unified diff | Download patch
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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 // SPDY priority range is version-dependent. For SPDY 2 and below, priority is a 426 // SPDY priority range is version-dependent. For SPDY 2 and below, priority is a
427 // number between 0 and 3. 427 // number between 0 and 3.
428 typedef uint8 SpdyPriority; 428 typedef uint8 SpdyPriority;
429 429
430 typedef std::map<std::string, std::string> SpdyNameValueBlock; 430 typedef std::map<std::string, std::string> SpdyNameValueBlock;
431 431
432 typedef uint64 SpdyPingId; 432 typedef uint64 SpdyPingId;
433 433
434 typedef std::string SpdyProtocolId; 434 typedef std::string SpdyProtocolId;
435 435
436 enum class SpdyHeaderValidatorType { REQUEST, RESPONSE };
437
436 // TODO(hkhalil): Add direct testing for this? It won't increase coverage any, 438 // TODO(hkhalil): Add direct testing for this? It won't increase coverage any,
437 // but is good to do anyway. 439 // but is good to do anyway.
438 class NET_EXPORT_PRIVATE SpdyConstants { 440 class NET_EXPORT_PRIVATE SpdyConstants {
439 public: 441 public:
440 // Returns true if a given on-the-wire enumeration of a frame type is valid 442 // Returns true if a given on-the-wire enumeration of a frame type is valid
441 // for a given protocol version, false otherwise. 443 // for a given protocol version, false otherwise.
442 static bool IsValidFrameType(SpdyMajorVersion version, int frame_type_field); 444 static bool IsValidFrameType(SpdyMajorVersion version, int frame_type_field);
443 445
444 // Parses a frame type from an on-the-wire enumeration of a given protocol 446 // Parses a frame type from an on-the-wire enumeration of a given protocol
445 // version. 447 // version.
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 SpdyFrameVisitor() {} 1091 SpdyFrameVisitor() {}
1090 virtual ~SpdyFrameVisitor() {} 1092 virtual ~SpdyFrameVisitor() {}
1091 1093
1092 private: 1094 private:
1093 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); 1095 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor);
1094 }; 1096 };
1095 1097
1096 } // namespace net 1098 } // namespace net
1097 1099
1098 #endif // NET_SPDY_SPDY_PROTOCOL_H_ 1100 #endif // NET_SPDY_SPDY_PROTOCOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698