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

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

Issue 2487613002: Landing Recent QUIC changes until 12:43 PM, Nov 5, 2016 UTC+8 (Closed)
Patch Set: Created 4 years, 1 month 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_packet_writer_wrapper.h ('k') | net/tools/quic/quic_server.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 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_packet_writer_wrapper.h" 5 #include "net/tools/quic/quic_packet_writer_wrapper.h"
6 6
7 #include "net/quic/core/quic_types.h" 7 #include "net/quic/core/quic_types.h"
8 8
9 namespace net { 9 namespace net {
10 10
11 QuicPacketWriterWrapper::QuicPacketWriterWrapper() {} 11 QuicPacketWriterWrapper::QuicPacketWriterWrapper() {}
12 12
13 QuicPacketWriterWrapper::QuicPacketWriterWrapper(QuicPacketWriter* writer)
14 : writer_(writer) {}
15
16 QuicPacketWriterWrapper::~QuicPacketWriterWrapper() {} 13 QuicPacketWriterWrapper::~QuicPacketWriterWrapper() {}
17 14
18 WriteResult QuicPacketWriterWrapper::WritePacket(const char* buffer, 15 WriteResult QuicPacketWriterWrapper::WritePacket(const char* buffer,
19 size_t buf_len, 16 size_t buf_len,
20 const IPAddress& self_address, 17 const IPAddress& self_address,
21 const IPEndPoint& peer_address, 18 const IPEndPoint& peer_address,
22 PerPacketOptions* options) { 19 PerPacketOptions* options) {
23 return writer_->WritePacket(buffer, buf_len, self_address, peer_address, 20 return writer_->WritePacket(buffer, buf_len, self_address, peer_address,
24 options); 21 options);
25 } 22 }
(...skipping 13 matching lines...) Expand all
39 QuicByteCount QuicPacketWriterWrapper::GetMaxPacketSize( 36 QuicByteCount QuicPacketWriterWrapper::GetMaxPacketSize(
40 const IPEndPoint& peer_address) const { 37 const IPEndPoint& peer_address) const {
41 return writer_->GetMaxPacketSize(peer_address); 38 return writer_->GetMaxPacketSize(peer_address);
42 } 39 }
43 40
44 void QuicPacketWriterWrapper::set_writer(QuicPacketWriter* writer) { 41 void QuicPacketWriterWrapper::set_writer(QuicPacketWriter* writer) {
45 writer_.reset(writer); 42 writer_.reset(writer);
46 } 43 }
47 44
48 } // namespace net 45 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_packet_writer_wrapper.h ('k') | net/tools/quic/quic_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698