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

Unified Diff: net/tools/quic/quic_simple_server_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_simple_server_bin.cc ('k') | net/tools/quic/quic_simple_server_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_server_packet_writer.h
diff --git a/net/quic/quic_server_packet_writer.h b/net/tools/quic/quic_simple_server_packet_writer.h
similarity index 73%
rename from net/quic/quic_server_packet_writer.h
rename to net/tools/quic/quic_simple_server_packet_writer.h
index 2e4646db3cc2a72caa0ff0e7f6f3566628473658..62eea8c445f2c1be501757c8ff18f4806d3be998 100644
--- a/net/quic/quic_server_packet_writer.h
+++ b/net/tools/quic/quic_simple_server_packet_writer.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef NET_QUIC_QUIC_SERVER_PACKET_WRITER_H_
-#define NET_QUIC_QUIC_SERVER_PACKET_WRITER_H_
+#ifndef NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_PACKET_WRITER_H_
+#define NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_PACKET_WRITER_H_
#include "base/basictypes.h"
#include "base/memory/weak_ptr.h"
@@ -18,19 +18,21 @@ class QuicBlockedWriterInterface;
class UDPServerSocket;
struct WriteResult;
+namespace tools {
+
// Chrome specific packet writer which uses a UDPServerSocket for writing
// data.
-class QuicServerPacketWriter : public QuicPacketWriter {
+class QuicSimpleServerPacketWriter : public QuicPacketWriter {
public:
typedef base::Callback<void(WriteResult)> WriteCallback;
- QuicServerPacketWriter(UDPServerSocket* socket,
+ QuicSimpleServerPacketWriter(UDPServerSocket* socket,
QuicBlockedWriterInterface* blocked_writer);
- ~QuicServerPacketWriter() override;
+ ~QuicSimpleServerPacketWriter() override;
// Use this method to write packets rather than WritePacket:
- // QuicServerPacketWriter requires a callback to exist for every write, which
- // will be called once the write completes.
+ // QuicSimpleServerPacketWriter requires a callback to exist for every
+ // write, which will be called once the write completes.
virtual WriteResult WritePacketWithCallback(
const char* buffer,
size_t buf_len,
@@ -64,11 +66,12 @@ class QuicServerPacketWriter : public QuicPacketWriter {
// Whether a write is currently in flight.
bool write_blocked_;
- base::WeakPtrFactory<QuicServerPacketWriter> weak_factory_;
+ base::WeakPtrFactory<QuicSimpleServerPacketWriter> weak_factory_;
- DISALLOW_COPY_AND_ASSIGN(QuicServerPacketWriter);
+ DISALLOW_COPY_AND_ASSIGN(QuicSimpleServerPacketWriter);
};
+} // namespace tools
} // namespace net
-#endif // NET_QUIC_QUIC_SERVER_PACKET_WRITER_H_
+#endif // NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_PACKET_WRITER_H_
« no previous file with comments | « net/tools/quic/quic_simple_server_bin.cc ('k') | net/tools/quic/quic_simple_server_packet_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698