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

Side by Side Diff: net/quic/quic_protocol.h

Issue 1572013002: relnote: QUIC header streams support to receive PUSH_PROMISE. Protected by --quic_supports_push_pr… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@14_CL_111507546
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « net/quic/quic_headers_stream_test.cc ('k') | net/quic/quic_spdy_session.h » ('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 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_
6 #define NET_QUIC_QUIC_PROTOCOL_H_ 6 #define NET_QUIC_QUIC_PROTOCOL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // Number of bytes reserved for private flags in the packet header. 118 // Number of bytes reserved for private flags in the packet header.
119 const size_t kPrivateFlagsSize = 1; 119 const size_t kPrivateFlagsSize = 1;
120 // Number of bytes reserved for FEC group in the packet header. 120 // Number of bytes reserved for FEC group in the packet header.
121 const size_t kFecGroupSize = 1; 121 const size_t kFecGroupSize = 1;
122 122
123 // Signifies that the QuicPacket will contain version of the protocol. 123 // Signifies that the QuicPacket will contain version of the protocol.
124 const bool kIncludeVersion = true; 124 const bool kIncludeVersion = true;
125 // Signifies that the QuicPacket will contain path id. 125 // Signifies that the QuicPacket will contain path id.
126 const bool kIncludePathId = true; 126 const bool kIncludePathId = true;
127 127
128 // Stream ID is reserved to denote an invalid ID.
129 const QuicStreamId kInvalidStreamId = 0;
130
128 // Reserved ID for the crypto stream. 131 // Reserved ID for the crypto stream.
129 const QuicStreamId kCryptoStreamId = 1; 132 const QuicStreamId kCryptoStreamId = 1;
130 133
131 // Reserved ID for the headers stream. 134 // Reserved ID for the headers stream.
132 const QuicStreamId kHeadersStreamId = 3; 135 const QuicStreamId kHeadersStreamId = 3;
133 136
134 // Header key used to identify final offset on data stream when sending HTTP/2 137 // Header key used to identify final offset on data stream when sending HTTP/2
135 // trailing headers over QUIC. 138 // trailing headers over QUIC.
136 NET_EXPORT_PRIVATE extern const char* const kFinalOffsetHeaderKey; 139 NET_EXPORT_PRIVATE extern const char* const kFinalOffsetHeaderKey;
137 140
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 : iov(iov), iov_count(iov_count), total_length(total_length) {} 1317 : iov(iov), iov_count(iov_count), total_length(total_length) {}
1315 1318
1316 const struct iovec* iov; 1319 const struct iovec* iov;
1317 const int iov_count; 1320 const int iov_count;
1318 const size_t total_length; 1321 const size_t total_length;
1319 }; 1322 };
1320 1323
1321 } // namespace net 1324 } // namespace net
1322 1325
1323 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1326 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_headers_stream_test.cc ('k') | net/quic/quic_spdy_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698