| Index: net/tools/quic/quic_per_connection_packet_writer.cc
|
| diff --git a/net/tools/quic/quic_per_connection_packet_writer.cc b/net/tools/quic/quic_per_connection_packet_writer.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..577475e2c50283b3ef29ad6b007c6a82f02ab6cb
|
| --- /dev/null
|
| +++ b/net/tools/quic/quic_per_connection_packet_writer.cc
|
| @@ -0,0 +1,46 @@
|
| +// Copyright (c) 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "net/tools/quic/quic_per_connection_packet_writer.h"
|
| +
|
| +namespace net {
|
| +
|
| +namespace tools {
|
| +
|
| +QuicPerConnectionPacketWriter::QuicPerConnectionPacketWriter(
|
| + QuicPacketWriter* shared_writer,
|
| + QuicConnection* connection)
|
| + : shared_writer_(shared_writer),
|
| + connection_(connection) {
|
| +}
|
| +
|
| +QuicPerConnectionPacketWriter::~QuicPerConnectionPacketWriter() {
|
| +}
|
| +
|
| +WriteResult QuicPerConnectionPacketWriter::WritePacket(
|
| + const char* buffer,
|
| + size_t buf_len,
|
| + const IPAddressNumber& self_address,
|
| + const IPEndPoint& peer_address) {
|
| + return shared_writer_->WritePacket(buffer,
|
| + buf_len,
|
| + self_address,
|
| + peer_address);
|
| +}
|
| +
|
| +bool QuicPerConnectionPacketWriter::IsWriteBlockedDataBuffered() const {
|
| + return shared_writer_->IsWriteBlockedDataBuffered();
|
| +}
|
| +
|
| +bool QuicPerConnectionPacketWriter::IsWriteBlocked() const {
|
| + return shared_writer_->IsWriteBlocked();
|
| +}
|
| +
|
| +void QuicPerConnectionPacketWriter::SetWritable() {
|
| + shared_writer_->SetWritable();
|
| +}
|
| +
|
| +} // namespace tools
|
| +
|
| +} // namespace net
|
|
|