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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/hash_tables.h" | 14 #include "base/hash_tables.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/string_piece.h" | 16 #include "base/string_piece.h" |
| 17 #include "net/base/int128.h" |
17 #include "net/base/net_export.h" | 18 #include "net/base/net_export.h" |
18 #include "net/quic/quic_time.h" | 19 #include "net/quic/quic_time.h" |
19 #include "net/quic/uint128.h" | |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 | 22 |
23 class QuicPacket; | 23 class QuicPacket; |
24 | 24 |
25 typedef uint64 QuicGuid; | 25 typedef uint64 QuicGuid; |
26 typedef uint32 QuicStreamId; | 26 typedef uint32 QuicStreamId; |
27 typedef uint64 QuicStreamOffset; | 27 typedef uint64 QuicStreamOffset; |
28 typedef uint64 QuicPacketSequenceNumber; | 28 typedef uint64 QuicPacketSequenceNumber; |
29 typedef uint8 QuicFecGroupNumber; | 29 typedef uint8 QuicFecGroupNumber; |
(...skipping 368 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 |