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

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

Issue 468373002: Patch set 2 of Daniel Ziegler's CL Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Suggested changes. 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 | Annotate | Revision Log
« no previous file with comments | « net/tools/quic/quic_per_connection_packet_writer.h ('k') | net/tools/quic/quic_server.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #include "net/tools/quic/quic_per_connection_packet_writer.h"
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
« no previous file with comments | « net/tools/quic/quic_per_connection_packet_writer.h ('k') | net/tools/quic/quic_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698