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

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: Rebase onto ToT 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
« 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 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/tools/quic/quic_per_connection_packet_writer.h"
6
7 namespace net {
8
9 namespace tools {
10
11 QuicPerConnectionPacketWriter::QuicPerConnectionPacketWriter(
12 QuicPacketWriter* shared_writer,
13 QuicConnection* connection)
14 : shared_writer_(shared_writer),
15 connection_(connection) {
16 }
17
18 QuicPerConnectionPacketWriter::~QuicPerConnectionPacketWriter() {
19 }
20
21 WriteResult QuicPerConnectionPacketWriter::WritePacket(
22 const char* buffer,
23 size_t buf_len,
24 const IPAddressNumber& self_address,
25 const IPEndPoint& peer_address) {
26 return shared_writer_->WritePacket(buffer,
27 buf_len,
28 self_address,
29 peer_address);
30 }
31
32 bool QuicPerConnectionPacketWriter::IsWriteBlockedDataBuffered() const {
33 return shared_writer_->IsWriteBlockedDataBuffered();
34 }
35
36 bool QuicPerConnectionPacketWriter::IsWriteBlocked() const {
37 return shared_writer_->IsWriteBlocked();
38 }
39
40 void QuicPerConnectionPacketWriter::SetWritable() {
41 shared_writer_->SetWritable();
42 }
43
44 } // namespace tools
45
46 } // 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