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

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

Issue 1670863002: QUIC - minor cleanup changes to keep code in sync with the internal source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0204
Patch Set: Created 4 years, 10 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') | 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 #include "net/tools/quic/quic_per_connection_packet_writer.h" 5 #include "net/tools/quic/quic_per_connection_packet_writer.h"
6 6
7 namespace net { 7 namespace net {
8 8
9
10 QuicPerConnectionPacketWriter::QuicPerConnectionPacketWriter( 9 QuicPerConnectionPacketWriter::QuicPerConnectionPacketWriter(
11 QuicPacketWriter* shared_writer) 10 QuicPacketWriter* shared_writer)
12 : shared_writer_(shared_writer) {} 11 : shared_writer_(shared_writer) {}
13 12
14 QuicPerConnectionPacketWriter::~QuicPerConnectionPacketWriter() {} 13 QuicPerConnectionPacketWriter::~QuicPerConnectionPacketWriter() {}
15 14
16 WriteResult QuicPerConnectionPacketWriter::WritePacket( 15 WriteResult QuicPerConnectionPacketWriter::WritePacket(
17 const char* buffer, 16 const char* buffer,
18 size_t buf_len, 17 size_t buf_len,
19 const IPAddressNumber& self_address, 18 const IPAddressNumber& self_address,
(...skipping 13 matching lines...) Expand all
33 32
34 void QuicPerConnectionPacketWriter::SetWritable() { 33 void QuicPerConnectionPacketWriter::SetWritable() {
35 shared_writer_->SetWritable(); 34 shared_writer_->SetWritable();
36 } 35 }
37 36
38 QuicByteCount QuicPerConnectionPacketWriter::GetMaxPacketSize( 37 QuicByteCount QuicPerConnectionPacketWriter::GetMaxPacketSize(
39 const IPEndPoint& peer_address) const { 38 const IPEndPoint& peer_address) const {
40 return shared_writer_->GetMaxPacketSize(peer_address); 39 return shared_writer_->GetMaxPacketSize(peer_address);
41 } 40 }
42 41
43
44 } // namespace net 42 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_per_connection_packet_writer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698