| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TOOLS_QUIC_QUIC_PER_CONNECTION_PACKET_WRITER_H_ | 5 #ifndef NET_TOOLS_QUIC_QUIC_PER_CONNECTION_PACKET_WRITER_H_ |
| 6 #define NET_TOOLS_QUIC_QUIC_PER_CONNECTION_PACKET_WRITER_H_ | 6 #define NET_TOOLS_QUIC_QUIC_PER_CONNECTION_PACKET_WRITER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 10 #include "base/macros.h" |
| 8 #include "net/quic/quic_connection.h" | 11 #include "net/quic/quic_connection.h" |
| 9 #include "net/quic/quic_packet_writer.h" | 12 #include "net/quic/quic_packet_writer.h" |
| 10 | 13 |
| 11 namespace net { | 14 namespace net { |
| 12 | 15 |
| 13 namespace tools { | 16 namespace tools { |
| 14 | 17 |
| 15 // A connection-specific packet writer that wraps a shared writer and keeps a | 18 // A connection-specific packet writer that wraps a shared writer and keeps a |
| 16 // reference to the connection. | 19 // reference to the connection. |
| 17 class QuicPerConnectionPacketWriter : public QuicPacketWriter { | 20 class QuicPerConnectionPacketWriter : public QuicPacketWriter { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 40 QuicConnection* connection_; // Not owned. | 43 QuicConnection* connection_; // Not owned. |
| 41 | 44 |
| 42 DISALLOW_COPY_AND_ASSIGN(QuicPerConnectionPacketWriter); | 45 DISALLOW_COPY_AND_ASSIGN(QuicPerConnectionPacketWriter); |
| 43 }; | 46 }; |
| 44 | 47 |
| 45 } // namespace tools | 48 } // namespace tools |
| 46 | 49 |
| 47 } // namespace net | 50 } // namespace net |
| 48 | 51 |
| 49 #endif // NET_TOOLS_QUIC_QUIC_PER_CONNECTION_PACKET_WRITER_H_ | 52 #endif // NET_TOOLS_QUIC_QUIC_PER_CONNECTION_PACKET_WRITER_H_ |
| OLD | NEW |