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

Unified Diff: net/tools/quic/quic_simple_per_connection_packet_writer.cc

Issue 1036023002: Move remaining QUIC server files from net/quic/ to net/tools/quic/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: correctly fix cronet 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/tools/quic/quic_simple_per_connection_packet_writer.h ('k') | net/tools/quic/quic_simple_server.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_per_connection_packet_writer.cc
diff --git a/net/quic/quic_per_connection_packet_writer.cc b/net/tools/quic/quic_simple_per_connection_packet_writer.cc
similarity index 50%
rename from net/quic/quic_per_connection_packet_writer.cc
rename to net/tools/quic/quic_simple_per_connection_packet_writer.cc
index 3882da8ef1d0ec4ee923f75f4e845bd3aab29e36..713278ff7cc69a7a91e9425b27cd7047984063f0 100644
--- a/net/quic/quic_per_connection_packet_writer.cc
+++ b/net/tools/quic/quic_simple_per_connection_packet_writer.cc
@@ -2,28 +2,29 @@
// 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/tools/quic/quic_simple_per_connection_packet_writer.h"
-#include "net/quic/quic_server_packet_writer.h"
+#include "net/tools/quic/quic_simple_server_packet_writer.h"
namespace net {
+namespace tools {
-QuicPerConnectionPacketWriter::QuicPerConnectionPacketWriter(
- QuicServerPacketWriter* shared_writer,
+QuicSimplePerConnectionPacketWriter::QuicSimplePerConnectionPacketWriter(
+ QuicSimpleServerPacketWriter* shared_writer,
QuicConnection* connection)
: shared_writer_(shared_writer),
connection_(connection),
weak_factory_(this){
}
-QuicPerConnectionPacketWriter::~QuicPerConnectionPacketWriter() {
+QuicSimplePerConnectionPacketWriter::~QuicSimplePerConnectionPacketWriter() {
}
-QuicPacketWriter* QuicPerConnectionPacketWriter::shared_writer() const {
+QuicPacketWriter* QuicSimplePerConnectionPacketWriter::shared_writer() const {
return shared_writer_;
}
-WriteResult QuicPerConnectionPacketWriter::WritePacket(
+WriteResult QuicSimplePerConnectionPacketWriter::WritePacket(
const char* buffer,
size_t buf_len,
const IPAddressNumber& self_address,
@@ -33,26 +34,27 @@ WriteResult QuicPerConnectionPacketWriter::WritePacket(
buf_len,
self_address,
peer_address,
- base::Bind(&QuicPerConnectionPacketWriter::OnWriteComplete,
+ base::Bind(&QuicSimplePerConnectionPacketWriter::OnWriteComplete,
weak_factory_.GetWeakPtr()));
}
-bool QuicPerConnectionPacketWriter::IsWriteBlockedDataBuffered() const {
+bool QuicSimplePerConnectionPacketWriter::IsWriteBlockedDataBuffered() const {
return shared_writer_->IsWriteBlockedDataBuffered();
}
-bool QuicPerConnectionPacketWriter::IsWriteBlocked() const {
+bool QuicSimplePerConnectionPacketWriter::IsWriteBlocked() const {
return shared_writer_->IsWriteBlocked();
}
-void QuicPerConnectionPacketWriter::SetWritable() {
+void QuicSimplePerConnectionPacketWriter::SetWritable() {
shared_writer_->SetWritable();
}
-void QuicPerConnectionPacketWriter::OnWriteComplete(WriteResult result) {
+void QuicSimplePerConnectionPacketWriter::OnWriteComplete(WriteResult result) {
if (result.status == WRITE_STATUS_ERROR) {
connection_->OnWriteError(result.error_code);
}
}
+} // namespace tools
} // namespace net
« no previous file with comments | « net/tools/quic/quic_simple_per_connection_packet_writer.h ('k') | net/tools/quic/quic_simple_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698