| 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 <list> | 9 #include <list> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 QuicPacketPublicHeader public_header; | 99 QuicPacketPublicHeader public_header; |
| 100 QuicPublicResetNonceProof nonce_proof; | 100 QuicPublicResetNonceProof nonce_proof; |
| 101 // TODO(fayang): remove rejected_packet_number when deprecating | 101 // TODO(fayang): remove rejected_packet_number when deprecating |
| 102 // FLAGS_quic_remove_packet_number_from_public_reset. | 102 // FLAGS_quic_remove_packet_number_from_public_reset. |
| 103 QuicPacketNumber rejected_packet_number; | 103 QuicPacketNumber rejected_packet_number; |
| 104 QuicSocketAddress client_address; | 104 QuicSocketAddress client_address; |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 typedef QuicPacketPublicHeader QuicVersionNegotiationPacket; | 107 typedef QuicPacketPublicHeader QuicVersionNegotiationPacket; |
| 108 | 108 |
| 109 typedef std::vector<std::pair<QuicPacketNumber, QuicTime>> PacketTimeVector; | |
| 110 | |
| 111 class NET_EXPORT_PRIVATE QuicData { | 109 class NET_EXPORT_PRIVATE QuicData { |
| 112 public: | 110 public: |
| 113 QuicData(const char* buffer, size_t length); | 111 QuicData(const char* buffer, size_t length); |
| 114 QuicData(const char* buffer, size_t length, bool owns_buffer); | 112 QuicData(const char* buffer, size_t length, bool owns_buffer); |
| 115 virtual ~QuicData(); | 113 virtual ~QuicData(); |
| 116 | 114 |
| 117 base::StringPiece AsStringPiece() const { | 115 base::StringPiece AsStringPiece() const { |
| 118 return base::StringPiece(data(), length()); | 116 return base::StringPiece(data(), length()); |
| 119 } | 117 } |
| 120 | 118 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 NET_EXPORT_PRIVATE void ClearSerializedPacket( | 255 NET_EXPORT_PRIVATE void ClearSerializedPacket( |
| 258 SerializedPacket* serialized_packet); | 256 SerializedPacket* serialized_packet); |
| 259 | 257 |
| 260 // Allocates a new char[] of size |packet.encrypted_length| and copies in | 258 // Allocates a new char[] of size |packet.encrypted_length| and copies in |
| 261 // |packet.encrypted_buffer|. | 259 // |packet.encrypted_buffer|. |
| 262 NET_EXPORT_PRIVATE char* CopyBuffer(const SerializedPacket& packet); | 260 NET_EXPORT_PRIVATE char* CopyBuffer(const SerializedPacket& packet); |
| 263 | 261 |
| 264 } // namespace net | 262 } // namespace net |
| 265 | 263 |
| 266 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 264 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |