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

Side by Side Diff: net/tools/quic/quic_per_connection_packet_writer.cc

Issue 467963002: Refactoring: Create per-connection packet writers in QuicDispatcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation Created 6 years, 4 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
OLDNEW
(Empty)
1 #include "net/tools/quic/quic_per_connection_packet_writer.h"
wtc 2014/08/13 21:01:34 Please write the copyright and license header.
dmz 2014/08/14 17:22:42 Done.
2
3 namespace net {
4
5 namespace tools {
6
7 QuicPerConnectionPacketWriter::QuicPerConnectionPacketWriter(
8 QuicPacketWriter* shared_writer,
9 QuicConnection* connection)
10 : shared_writer_(shared_writer),
11 connection_(connection) {
12 }
13
14 QuicPerConnectionPacketWriter::~QuicPerConnectionPacketWriter() {
15 }
16
17 WriteResult QuicPerConnectionPacketWriter::WritePacket(
18 const char* buffer,
19 size_t buf_len,
20 const IPAddressNumber& self_address,
21 const IPEndPoint& peer_address) {
22 return shared_writer_->WritePacket(buffer,
23 buf_len,
24 self_address,
25 peer_address);
26 }
27
28 bool QuicPerConnectionPacketWriter::IsWriteBlockedDataBuffered() const {
29 return shared_writer_->IsWriteBlockedDataBuffered();
30 }
31
32 bool QuicPerConnectionPacketWriter::IsWriteBlocked() const {
33 return shared_writer_->IsWriteBlocked();
34 }
35
36 void QuicPerConnectionPacketWriter::SetWritable() {
37 shared_writer_->SetWritable();
38 }
39
40 } // namespace tools
41
42 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698