OLD | NEW |
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 <limits> | 8 #include <limits> |
9 #include <ostream> | 9 #include <ostream> |
10 #include <utility> | 10 #include <utility> |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 const QuicAckFrame& s); | 254 const QuicAckFrame& s); |
255 | 255 |
256 SentPacketInfo sent_info; | 256 SentPacketInfo sent_info; |
257 ReceivedPacketInfo received_info; | 257 ReceivedPacketInfo received_info; |
258 CongestionInfo congestion_info; | 258 CongestionInfo congestion_info; |
259 }; | 259 }; |
260 | 260 |
261 struct NET_EXPORT_PRIVATE QuicRstStreamFrame { | 261 struct NET_EXPORT_PRIVATE QuicRstStreamFrame { |
262 QuicRstStreamFrame() {} | 262 QuicRstStreamFrame() {} |
263 QuicRstStreamFrame(QuicStreamId stream_id, uint64 offset, | 263 QuicRstStreamFrame(QuicStreamId stream_id, uint64 offset, |
264 QuicErrorCode error_code) | 264 QuicErrorCode error_code) |
265 : stream_id(stream_id), offset(offset), error_code(error_code) { | 265 : stream_id(stream_id), offset(offset), error_code(error_code) { |
266 DCHECK_LE(error_code, std::numeric_limits<uint8>::max()); | 266 DCHECK_LE(error_code, std::numeric_limits<uint8>::max()); |
267 } | 267 } |
268 | 268 |
269 QuicStreamId stream_id; | 269 QuicStreamId stream_id; |
270 uint64 offset; | 270 uint64 offset; |
271 QuicErrorCode error_code; | 271 QuicErrorCode error_code; |
272 std::string error_details; | 272 std::string error_details; |
273 }; | 273 }; |
274 | 274 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 return base::StringPiece(data() + kStartOfHashData, kStartOfEncryptedData); | 398 return base::StringPiece(data() + kStartOfHashData, kStartOfEncryptedData); |
399 } | 399 } |
400 | 400 |
401 private: | 401 private: |
402 DISALLOW_COPY_AND_ASSIGN(QuicEncryptedPacket); | 402 DISALLOW_COPY_AND_ASSIGN(QuicEncryptedPacket); |
403 }; | 403 }; |
404 | 404 |
405 } // namespace net | 405 } // namespace net |
406 | 406 |
407 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 407 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |