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_PACKET_WRITER_WRAPPER_H_ | 5 #ifndef NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_ |
6 #define NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_ | 6 #define NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 10 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.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 // Wraps a writer object to allow dynamically extending functionality. Use | 18 // Wraps a writer object to allow dynamically extending functionality. Use |
16 // cases: replace writer while dispatcher and connections hold on to the | 19 // cases: replace writer while dispatcher and connections hold on to the |
17 // wrapper; mix in monitoring; mix in mocks in unit tests. | 20 // wrapper; mix in monitoring; mix in mocks in unit tests. |
(...skipping 20 matching lines...) Expand all Loading... |
38 private: | 41 private: |
39 scoped_ptr<QuicPacketWriter> writer_; | 42 scoped_ptr<QuicPacketWriter> writer_; |
40 | 43 |
41 DISALLOW_COPY_AND_ASSIGN(QuicPacketWriterWrapper); | 44 DISALLOW_COPY_AND_ASSIGN(QuicPacketWriterWrapper); |
42 }; | 45 }; |
43 | 46 |
44 } // namespace tools | 47 } // namespace tools |
45 } // namespace net | 48 } // namespace net |
46 | 49 |
47 #endif // NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_ | 50 #endif // NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_ |
OLD | NEW |