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 #include "net/tools/quic/quic_packet_writer_wrapper.h" | 5 #include "net/tools/quic/quic_packet_writer_wrapper.h" |
6 | 6 |
7 #include "net/quic/quic_types.h" | 7 #include "net/quic/quic_types.h" |
8 | 8 |
9 namespace net { | 9 namespace net { |
10 namespace tools { | 10 namespace tools { |
(...skipping 22 matching lines...) Expand all Loading... |
33 } | 33 } |
34 | 34 |
35 void QuicPacketWriterWrapper::SetWritable() { | 35 void QuicPacketWriterWrapper::SetWritable() { |
36 writer_->SetWritable(); | 36 writer_->SetWritable(); |
37 } | 37 } |
38 | 38 |
39 void QuicPacketWriterWrapper::set_writer(QuicPacketWriter* writer) { | 39 void QuicPacketWriterWrapper::set_writer(QuicPacketWriter* writer) { |
40 writer_.reset(writer); | 40 writer_.reset(writer); |
41 } | 41 } |
42 | 42 |
43 QuicPacketWriter* QuicPacketWriterWrapper::release_writer() { | |
44 return writer_.release(); | |
45 } | |
46 | |
47 } // namespace tools | 43 } // namespace tools |
48 } // namespace net | 44 } // namespace net |
OLD | NEW |