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

Unified Diff: net/socket/tcp_server_socket.h

Issue 296053012: Replace StreamListenSocket with StreamSocket in HttpServer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
Index: net/socket/tcp_server_socket.h
diff --git a/net/socket/tcp_server_socket.h b/net/socket/tcp_server_socket.h
index faff9ad826af3115ac25bb31e64706c9a290f926..ce6f45758de916a9e65c3090e2c2ec7e3a179ea7 100644
--- a/net/socket/tcp_server_socket.h
+++ b/net/socket/tcp_server_socket.h
@@ -11,6 +11,7 @@
#include "net/base/ip_endpoint.h"
#include "net/base/net_export.h"
#include "net/base/net_log.h"
+#include "net/base/net_util.h"
mmenke 2014/05/23 19:20:58 What is this needed for?
byungchul 2014/05/30 00:19:02 Done.
#include "net/socket/server_socket.h"
#include "net/socket/tcp_socket.h"
@@ -27,6 +28,9 @@ class NET_EXPORT_PRIVATE TCPServerSocket : public ServerSocket {
virtual int Accept(scoped_ptr<StreamSocket>* socket,
const CompletionCallback& callback) OVERRIDE;
+ // Factory with IP address string and port.
+ static scoped_ptr<TCPServerSocket> Create(const std::string& ip, int port);
mmenke 2014/05/23 19:20:58 I think it's kinda of weird to have TCPServerSocke
byungchul 2014/05/30 00:19:02 Defined ServerSocketFactory which is necessary to
+
private:
// Converts |accepted_socket_| and stores the result in
// |output_accepted_socket|.

Powered by Google App Engine
This is Rietveld 408576698