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

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

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_server_bin.cc ('k') | net/tools/quic/quic_simple_per_connection_packet_writer.cc » ('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.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_
« no previous file with comments | « net/tools/quic/quic_server_bin.cc ('k') | net/tools/quic/quic_simple_per_connection_packet_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698