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

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: Address Pavel's comments 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
Index: net/base/tcp_listen_socket.cc
diff --git a/net/base/tcp_listen_socket.cc b/net/base/tcp_listen_socket.cc
index 6d9b1834f3b4eb4b62bedba671024f4f620eb58b..8adbda18024a97ed8f2fcb7b6b384bf1142182da 100644
--- a/net/base/tcp_listen_socket.cc
+++ b/net/base/tcp_listen_socket.cc
@@ -84,4 +84,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) {
+ return TCPListenSocket::CreateAndListen(ip_, port_, delegate);
+}
+
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698