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> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "net/quic/quic_connection.h" | 11 #include "net/quic/core/quic_connection.h" |
12 #include "net/quic/quic_packet_writer.h" | 12 #include "net/quic/core/quic_packet_writer.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 | 15 |
16 // A connection-specific packet writer that wraps a shared writer. | 16 // A connection-specific packet writer that wraps a shared writer. |
17 class QuicPerConnectionPacketWriter : public QuicPacketWriter { | 17 class QuicPerConnectionPacketWriter : public QuicPacketWriter { |
18 public: | 18 public: |
19 // Does not take ownership of |shared_writer|. | 19 // Does not take ownership of |shared_writer|. |
20 QuicPerConnectionPacketWriter(QuicPacketWriter* shared_writer); | 20 QuicPerConnectionPacketWriter(QuicPacketWriter* shared_writer); |
21 ~QuicPerConnectionPacketWriter() override; | 21 ~QuicPerConnectionPacketWriter() override; |
22 | 22 |
(...skipping 13 matching lines...) Expand all Loading... |
36 | 36 |
37 private: | 37 private: |
38 QuicPacketWriter* shared_writer_; // Not owned. | 38 QuicPacketWriter* shared_writer_; // Not owned. |
39 | 39 |
40 DISALLOW_COPY_AND_ASSIGN(QuicPerConnectionPacketWriter); | 40 DISALLOW_COPY_AND_ASSIGN(QuicPerConnectionPacketWriter); |
41 }; | 41 }; |
42 | 42 |
43 } // namespace net | 43 } // namespace net |
44 | 44 |
45 #endif // NET_TOOLS_QUIC_QUIC_PER_CONNECTION_PACKET_WRITER_H_ | 45 #endif // NET_TOOLS_QUIC_QUIC_PER_CONNECTION_PACKET_WRITER_H_ |
OLD | NEW |