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

Side by Side Diff: net/quic/quartc/quartc_packet_writer.cc

Issue 2875333002: Landing Recent QUIC changes until Mon May 8 21:42:46 2017 +0000 (Closed)
Patch Set: Created 3 years, 7 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/quic/quartc/quartc_factory.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2017 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/quic/quartc/quartc_packet_writer.h" 5 #include "net/quic/quartc/quartc_packet_writer.h"
6 6
7 #include <errno.h>
8
9 namespace net { 7 namespace net {
10 8
11 QuartcPacketWriter::QuartcPacketWriter( 9 QuartcPacketWriter::QuartcPacketWriter(
12 QuartcSessionInterface::PacketTransport* packet_transport, 10 QuartcSessionInterface::PacketTransport* packet_transport,
13 QuicByteCount max_packet_size) 11 QuicByteCount max_packet_size)
14 : packet_transport_(packet_transport), max_packet_size_(max_packet_size) {} 12 : packet_transport_(packet_transport), max_packet_size_(max_packet_size) {}
15 13
16 WriteResult QuartcPacketWriter::WritePacket( 14 WriteResult QuartcPacketWriter::WritePacket(
17 const char* buffer, 15 const char* buffer,
18 size_t buf_len, 16 size_t buf_len,
(...skipping 18 matching lines...) Expand all
37 } 35 }
38 36
39 QuicByteCount QuartcPacketWriter::GetMaxPacketSize( 37 QuicByteCount QuartcPacketWriter::GetMaxPacketSize(
40 const QuicSocketAddress& peer_address) const { 38 const QuicSocketAddress& peer_address) const {
41 return max_packet_size_; 39 return max_packet_size_;
42 } 40 }
43 41
44 void QuartcPacketWriter::SetWritable() {} 42 void QuartcPacketWriter::SetWritable() {}
45 43
46 } // namespace net 44 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quartc/quartc_factory.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698