Index: net/tools/quic/quic_simple_per_connection_packet_writer.h |
diff --git a/net/quic/quic_per_connection_packet_writer.h b/net/tools/quic/quic_simple_per_connection_packet_writer.h |
similarity index 64% |
rename from net/quic/quic_per_connection_packet_writer.h |
rename to net/tools/quic/quic_simple_per_connection_packet_writer.h |
index 6d913120ea69507f6ee071b573a0904b1ba0f34a..5cb4f4a8b9c1a462f2d12a3801f2f5f3ae5d7520 100644 |
--- a/net/quic/quic_per_connection_packet_writer.h |
+++ b/net/tools/quic/quic_simple_per_connection_packet_writer.h |
@@ -2,27 +2,29 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef NET_QUIC_QUIC_PER_CONNECTION_PACKET_WRITER_H_ |
-#define NET_QUIC_QUIC_PER_CONNECTION_PACKET_WRITER_H_ |
+#ifndef NET_QUIC_TOOLS_QUIC_SIMPLE_PER_CONNECTION_PACKET_WRITER_H_ |
+#define NET_QUIC_TOOLS_QUIC_SIMPLE_PER_CONNECTION_PACKET_WRITER_H_ |
#include "base/memory/weak_ptr.h" |
#include "net/quic/quic_connection.h" |
#include "net/quic/quic_packet_writer.h" |
namespace net { |
+namespace tools { |
-class QuicServerPacketWriter; |
+class QuicSimpleServerPacketWriter; |
// A connection-specific packet writer that notifies its connection when its |
// writes to the shared QuicServerPacketWriter complete. |
// This class is necessary because multiple connections can share the same |
// QuicServerPacketWriter, so it has no way to know which connection to notify. |
-class QuicPerConnectionPacketWriter : public QuicPacketWriter { |
+class QuicSimplePerConnectionPacketWriter : public QuicPacketWriter { |
public: |
// Does not take ownership of |shared_writer| or |connection|. |
- QuicPerConnectionPacketWriter(QuicServerPacketWriter* shared_writer, |
- QuicConnection* connection); |
- ~QuicPerConnectionPacketWriter() override; |
+ QuicSimplePerConnectionPacketWriter( |
+ QuicSimpleServerPacketWriter* shared_writer, |
+ QuicConnection* connection); |
+ ~QuicSimplePerConnectionPacketWriter() override; |
QuicPacketWriter* shared_writer() const; |
QuicConnection* connection() const { return connection_; } |
@@ -40,14 +42,15 @@ class QuicPerConnectionPacketWriter : public QuicPacketWriter { |
private: |
void OnWriteComplete(WriteResult result); |
- QuicServerPacketWriter* shared_writer_; // Not owned. |
+ QuicSimpleServerPacketWriter* shared_writer_; // Not owned. |
QuicConnection* connection_; // Not owned. |
- base::WeakPtrFactory<QuicPerConnectionPacketWriter> weak_factory_; |
+ base::WeakPtrFactory<QuicSimplePerConnectionPacketWriter> weak_factory_; |
- DISALLOW_COPY_AND_ASSIGN(QuicPerConnectionPacketWriter); |
+ DISALLOW_COPY_AND_ASSIGN(QuicSimplePerConnectionPacketWriter); |
}; |
+} // namespace tools |
} // namespace net |
-#endif // NET_QUIC_QUIC_PER_CONNECTION_PACKET_WRITER_H_ |
+#endif // NET_QUIC_TOOLS_QUIC_SIMPLE_PER_CONNECTION_PACKET_WRITER_H_ |