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_CORE_QUIC_PACKETS_H_ | 5 #ifndef NET_QUIC_CORE_QUIC_PACKETS_H_ |
6 #define NET_QUIC_CORE_QUIC_PACKETS_H_ | 6 #define NET_QUIC_CORE_QUIC_PACKETS_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 #include <list> | 9 #include <list> |
10 #include <memory> | 10 #include <memory> |
11 #include <ostream> | 11 #include <ostream> |
12 #include <string> | 12 #include <string> |
13 #include <utility> | 13 #include <utility> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/memory/ref_counted.h" | |
19 #include "base/strings/string_piece.h" | 18 #include "base/strings/string_piece.h" |
20 #include "net/base/int128.h" | 19 #include "net/base/int128.h" |
21 #include "net/base/iovec.h" | 20 #include "net/base/iovec.h" |
22 #include "net/quic/core/frames/quic_frame.h" | 21 #include "net/quic/core/frames/quic_frame.h" |
23 #include "net/quic/core/quic_ack_listener_interface.h" | 22 #include "net/quic/core/quic_ack_listener_interface.h" |
24 #include "net/quic/core/quic_bandwidth.h" | 23 #include "net/quic/core/quic_bandwidth.h" |
25 #include "net/quic/core/quic_constants.h" | 24 #include "net/quic/core/quic_constants.h" |
26 #include "net/quic/core/quic_error_codes.h" | 25 #include "net/quic/core/quic_error_codes.h" |
27 #include "net/quic/core/quic_time.h" | 26 #include "net/quic/core/quic_time.h" |
28 #include "net/quic/core/quic_types.h" | 27 #include "net/quic/core/quic_types.h" |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 QUIC_EXPORT_PRIVATE void ClearSerializedPacket( | 254 QUIC_EXPORT_PRIVATE void ClearSerializedPacket( |
256 SerializedPacket* serialized_packet); | 255 SerializedPacket* serialized_packet); |
257 | 256 |
258 // Allocates a new char[] of size |packet.encrypted_length| and copies in | 257 // Allocates a new char[] of size |packet.encrypted_length| and copies in |
259 // |packet.encrypted_buffer|. | 258 // |packet.encrypted_buffer|. |
260 QUIC_EXPORT_PRIVATE char* CopyBuffer(const SerializedPacket& packet); | 259 QUIC_EXPORT_PRIVATE char* CopyBuffer(const SerializedPacket& packet); |
261 | 260 |
262 } // namespace net | 261 } // namespace net |
263 | 262 |
264 #endif // NET_QUIC_CORE_QUIC_PACKETS_H_ | 263 #endif // NET_QUIC_CORE_QUIC_PACKETS_H_ |
OLD | NEW |