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

Unified Diff: net/tools/quic/quic_simple_server.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_per_connection_packet_writer.cc ('k') | net/tools/quic/quic_simple_server.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.h
diff --git a/net/quic/quic_server.h b/net/tools/quic/quic_simple_server.h
similarity index 84%
rename from net/quic/quic_server.h
rename to net/tools/quic/quic_simple_server.h
index f28fc607861d1e15666975ccb03630cc7705f4ae..c46765dcbd8c0d5233f8363aa73622d21cd6f515 100644
--- a/net/quic/quic_server.h
+++ b/net/tools/quic/quic_simple_server.h
@@ -5,8 +5,8 @@
// A toy server, which listens on a specified address for QUIC traffic and
// handles incoming responses.
-#ifndef NET_QUIC_QUIC_SERVER_H_
-#define NET_QUIC_QUIC_SERVER_H_
+#ifndef NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_
+#define NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
@@ -20,23 +20,22 @@
namespace net {
-
-namespace test {
-class QuicServerPeer;
-} // namespace test
+class UDPServerSocket;
namespace tools {
+
class QuicDispatcher;
-} // namespace tools
-class UDPServerSocket;
+namespace test {
+class QuicSimpleServerPeer;
+} // namespace test
-class QuicServer {
+class QuicSimpleServer {
public:
- QuicServer(const QuicConfig& config,
- const QuicVersionVector& supported_versions);
+ QuicSimpleServer(const QuicConfig& config,
+ const QuicVersionVector& supported_versions);
- virtual ~QuicServer();
+ virtual ~QuicSimpleServer();
// Start listening on the specified address. Returns an error code.
int Listen(const IPEndPoint& address);
@@ -62,16 +61,16 @@ class QuicServer {
crypto_config_.SetProofSource(source);
}
- tools::QuicDispatcher* dispatcher() { return dispatcher_.get(); }
+ QuicDispatcher* dispatcher() { return dispatcher_.get(); }
private:
- friend class net::test::QuicServerPeer;
+ friend class test::QuicSimpleServerPeer;
// Initialize the internal state of the server.
void Initialize();
// Accepts data from the framer and demuxes clients to sessions.
- scoped_ptr<tools::QuicDispatcher> dispatcher_;
+ scoped_ptr<QuicDispatcher> dispatcher_;
// Used by the helper_ to time alarms.
QuicClock clock_;
@@ -114,11 +113,12 @@ class QuicServer {
// The log to use for the socket.
NetLog net_log_;
- base::WeakPtrFactory<QuicServer> weak_factory_;
+ base::WeakPtrFactory<QuicSimpleServer> weak_factory_;
- DISALLOW_COPY_AND_ASSIGN(QuicServer);
+ DISALLOW_COPY_AND_ASSIGN(QuicSimpleServer);
};
+} // namespace tools
} // namespace net
-#endif // NET_QUIC_QUIC_SERVER_H_
+#endif // NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_
« no previous file with comments | « net/tools/quic/quic_simple_per_connection_packet_writer.cc ('k') | net/tools/quic/quic_simple_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698