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

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

Issue 1130053007: Update HTTP/2 ALTSVC wireformat from draft-04 to draft-06. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hack around win_chromium_compile_dbg_ng linker errors. Created 5 years, 7 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
« no previous file with comments | « net/spdy/spdy_framer_test.cc ('k') | no next file » | 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 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 void Visit(SpdyFrameVisitor* visitor) const override; 954 void Visit(SpdyFrameVisitor* visitor) const override;
955 955
956 bool end_headers() const { return end_headers_; } 956 bool end_headers() const { return end_headers_; }
957 void set_end_headers(bool end_headers) {end_headers_ = end_headers;} 957 void set_end_headers(bool end_headers) {end_headers_ = end_headers;}
958 958
959 private: 959 private:
960 bool end_headers_; 960 bool end_headers_;
961 DISALLOW_COPY_AND_ASSIGN(SpdyContinuationIR); 961 DISALLOW_COPY_AND_ASSIGN(SpdyContinuationIR);
962 }; 962 };
963 963
964 // TODO(bnc): Add probability.
965 // TODO(bnc): Separate (protocol, port, host, max_age, probability) tuple into
966 // struct, have a vector of that struct. A single HTTP/1.1 header field or
967 // HTTP/2 or QUIC frame can define multiple such tuples.
964 class NET_EXPORT_PRIVATE SpdyAltSvcIR : public SpdyFrameWithStreamIdIR { 968 class NET_EXPORT_PRIVATE SpdyAltSvcIR : public SpdyFrameWithStreamIdIR {
965 public: 969 public:
966 explicit SpdyAltSvcIR(SpdyStreamId stream_id); 970 explicit SpdyAltSvcIR(SpdyStreamId stream_id);
967 971
968 uint32 max_age() const { return max_age_; } 972 uint32 max_age() const { return max_age_; }
969 uint16 port() const { return port_; } 973 uint16 port() const { return port_; }
970 SpdyProtocolId protocol_id() const { 974 SpdyProtocolId protocol_id() const {
971 return protocol_id_; 975 return protocol_id_;
972 } 976 }
973 std::string host() const { return host_; } 977 std::string host() const { return host_; }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 SpdyFrameVisitor() {} 1095 SpdyFrameVisitor() {}
1092 virtual ~SpdyFrameVisitor() {} 1096 virtual ~SpdyFrameVisitor() {}
1093 1097
1094 private: 1098 private:
1095 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); 1099 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor);
1096 }; 1100 };
1097 1101
1098 } // namespace net 1102 } // namespace net
1099 1103
1100 #endif // NET_SPDY_SPDY_PROTOCOL_H_ 1104 #endif // NET_SPDY_SPDY_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_framer_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698