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

Unified Diff: net/base/tcp_listen_socket.cc

Issue 10386048: Decouple DevTools from socket implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync Created 8 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
« no previous file with comments | « net/base/tcp_listen_socket.h ('k') | net/server/http_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/tcp_listen_socket.cc
diff --git a/net/base/tcp_listen_socket.cc b/net/base/tcp_listen_socket.cc
index c34a9191bf29614c6378d94f26b07122fd54850b..1583bfb9acac2f9ab21cbc1233d8b2ef6ee6747f 100644
--- a/net/base/tcp_listen_socket.cc
+++ b/net/base/tcp_listen_socket.cc
@@ -88,4 +88,16 @@ void TCPListenSocket::Accept() {
socket_delegate_->DidAccept(this, sock);
}
+TCPListenSocketFactory::TCPListenSocketFactory(const string& ip, int port)
+ : ip_(ip),
+ port_(port) {
+}
+
+TCPListenSocketFactory::~TCPListenSocketFactory() {}
+
+scoped_refptr<StreamListenSocket> TCPListenSocketFactory::CreateAndListen(
+ StreamListenSocket::Delegate* delegate) const {
+ return TCPListenSocket::CreateAndListen(ip_, port_, delegate);
+}
+
} // namespace net
« no previous file with comments | « net/base/tcp_listen_socket.h ('k') | net/server/http_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698