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

Unified Diff: net/base/stream_listen_socket.h

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/stream_listen_socket.h
diff --git a/net/base/stream_listen_socket.h b/net/base/stream_listen_socket.h
index 8b71b52edf36ba11433bd2eca581e81aa7617be9..90b9ec2414f9390b08fde0bbf8d3a654395c3878 100644
--- a/net/base/stream_listen_socket.h
+++ b/net/base/stream_listen_socket.h
@@ -132,6 +132,17 @@ class NET_EXPORT StreamListenSocket
DISALLOW_COPY_AND_ASSIGN(StreamListenSocket);
};
+// Abstract factory that must be subclassed for each subclass of
+// StreamListenSocket.
+class StreamListenSocketFactory {
+ public:
+ virtual ~StreamListenSocketFactory() {}
+
+ // Returns a new instance of StreamListenSocket or NULL if an error occurred.
+ virtual scoped_refptr<StreamListenSocket> CreateAndListen(
+ StreamListenSocket::Delegate* delegate) = 0;
+};
+
} // namespace net
#endif // NET_BASE_STREAM_LISTEN_SOCKET_H_

Powered by Google App Engine
This is Rietveld 408576698