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

Unified Diff: net/quic/quic_per_connection_packet_writer.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_per_connection_packet_writer.h ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_per_connection_packet_writer.cc
diff --git a/net/quic/quic_per_connection_packet_writer.cc b/net/quic/quic_per_connection_packet_writer.cc
deleted file mode 100644
index 3882da8ef1d0ec4ee923f75f4e845bd3aab29e36..0000000000000000000000000000000000000000
--- a/net/quic/quic_per_connection_packet_writer.cc
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 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/quic/quic_per_connection_packet_writer.h"
-
-#include "net/quic/quic_server_packet_writer.h"
-
-namespace net {
-
-QuicPerConnectionPacketWriter::QuicPerConnectionPacketWriter(
- QuicServerPacketWriter* shared_writer,
- QuicConnection* connection)
- : shared_writer_(shared_writer),
- connection_(connection),
- weak_factory_(this){
-}
-
-QuicPerConnectionPacketWriter::~QuicPerConnectionPacketWriter() {
-}
-
-QuicPacketWriter* QuicPerConnectionPacketWriter::shared_writer() const {
- return shared_writer_;
-}
-
-WriteResult QuicPerConnectionPacketWriter::WritePacket(
- const char* buffer,
- size_t buf_len,
- const IPAddressNumber& self_address,
- const IPEndPoint& peer_address) {
- return shared_writer_->WritePacketWithCallback(
- buffer,
- buf_len,
- self_address,
- peer_address,
- base::Bind(&QuicPerConnectionPacketWriter::OnWriteComplete,
- weak_factory_.GetWeakPtr()));
-}
-
-bool QuicPerConnectionPacketWriter::IsWriteBlockedDataBuffered() const {
- return shared_writer_->IsWriteBlockedDataBuffered();
-}
-
-bool QuicPerConnectionPacketWriter::IsWriteBlocked() const {
- return shared_writer_->IsWriteBlocked();
-}
-
-void QuicPerConnectionPacketWriter::SetWritable() {
- shared_writer_->SetWritable();
-}
-
-void QuicPerConnectionPacketWriter::OnWriteComplete(WriteResult result) {
- if (result.status == WRITE_STATUS_ERROR) {
- connection_->OnWriteError(result.error_code);
- }
-}
-
-} // namespace net
« no previous file with comments | « net/quic/quic_per_connection_packet_writer.h ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698