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 <stddef.h> | 8 #include <stddef.h> |
9 #include <limits> | 9 #include <limits> |
10 #include <map> | 10 #include <map> |
11 #include <ostream> | 11 #include <ostream> |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <utility> | 14 #include <utility> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
18 #include "base/hash_tables.h" | 18 #include "base/hash_tables.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
20 #include "base/string_piece.h" | 20 #include "base/string_piece.h" |
21 #include "net/base/int128.h" | 21 #include "net/base/int128.h" |
22 #include "net/base/net_export.h" | 22 #include "net/base/net_export.h" |
23 #include "net/quic/quic_time.h" | 23 #include "net/quic/quic_time.h" |
24 | 24 |
25 namespace net { | 25 namespace net { |
26 | 26 |
| 27 using ::operator<<; |
| 28 |
27 class QuicPacket; | 29 class QuicPacket; |
28 | 30 |
29 typedef uint64 QuicGuid; | 31 typedef uint64 QuicGuid; |
30 typedef uint32 QuicStreamId; | 32 typedef uint32 QuicStreamId; |
31 typedef uint64 QuicStreamOffset; | 33 typedef uint64 QuicStreamOffset; |
32 typedef uint64 QuicPacketSequenceNumber; | 34 typedef uint64 QuicPacketSequenceNumber; |
33 typedef uint8 QuicFecGroupNumber; | 35 typedef uint8 QuicFecGroupNumber; |
34 | 36 |
35 // TODO(rch): Consider Quic specific names for these constants. | 37 // TODO(rch): Consider Quic specific names for these constants. |
36 const size_t kMaxPacketSize = 1200; // Maximum size in bytes of a QUIC packet. | 38 const size_t kMaxPacketSize = 1200; // Maximum size in bytes of a QUIC packet. |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 return base::StringPiece(data() + kStartOfHashData, kStartOfEncryptedData); | 429 return base::StringPiece(data() + kStartOfHashData, kStartOfEncryptedData); |
428 } | 430 } |
429 | 431 |
430 private: | 432 private: |
431 DISALLOW_COPY_AND_ASSIGN(QuicEncryptedPacket); | 433 DISALLOW_COPY_AND_ASSIGN(QuicEncryptedPacket); |
432 }; | 434 }; |
433 | 435 |
434 } // namespace net | 436 } // namespace net |
435 | 437 |
436 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 438 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |