Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: net/tools/quic/quic_packet_writer_wrapper.h

Issue 2795853002: Merge internal change: 152000921 (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 22 matching lines...) Expand all
33 bool IsWriteBlocked() const override; 33 bool IsWriteBlocked() const override;
34 void SetWritable() override; 34 void SetWritable() override;
35 QuicByteCount GetMaxPacketSize( 35 QuicByteCount GetMaxPacketSize(
36 const QuicSocketAddress& peer_address) const override; 36 const QuicSocketAddress& peer_address) const override;
37 37
38 // Takes ownership of |writer|. 38 // Takes ownership of |writer|.
39 void set_writer(QuicPacketWriter* writer); 39 void set_writer(QuicPacketWriter* writer);
40 40
41 virtual void set_peer_address(const QuicSocketAddress& peer_address) {} 41 virtual void set_peer_address(const QuicSocketAddress& peer_address) {}
42 42
43 QuicPacketWriter* writer() { return writer_.get(); }
44
43 private: 45 private:
44 std::unique_ptr<QuicPacketWriter> writer_; 46 std::unique_ptr<QuicPacketWriter> writer_;
45 47
46 DISALLOW_COPY_AND_ASSIGN(QuicPacketWriterWrapper); 48 DISALLOW_COPY_AND_ASSIGN(QuicPacketWriterWrapper);
47 }; 49 };
48 50
49 } // namespace net 51 } // namespace net
50 52
51 #endif // NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_ 53 #endif // NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698