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

Unified Diff: net/tools/fetch/http_listen_socket.h

Issue 10161005: Add DefaultListenSocket. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix year in license header Created 8 years, 8 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/tools/fetch/http_listen_socket.h
diff --git a/net/tools/fetch/http_listen_socket.h b/net/tools/fetch/http_listen_socket.h
index 8a09a9e627b151af8b3c3c1ee9ea103e584d3821..2b1684b755ca215ca65d51c8102a08cc0e4836bf 100644
--- a/net/tools/fetch/http_listen_socket.h
+++ b/net/tools/fetch/http_listen_socket.h
@@ -7,6 +7,7 @@
#pragma once
#include "base/message_loop.h"
+#include "net/base/listen_socket.h"
#include "net/base/tcp_listen_socket.h"
class HttpServerRequestInfo;
@@ -29,7 +30,6 @@ class HttpListenSocket : public net::TCPListenSocket,
HttpListenSocket::Delegate* delegate);
mmenke 2012/04/25 17:25:31 Just so we have a consistent interface, could you
Philippe 2012/04/30 06:55:21 Sure.
virtual void Listen() OVERRIDE;
- virtual void Accept() OVERRIDE;
// Send a server response.
// TODO(mbelshe): make this capable of non-ascii data.
@@ -42,6 +42,10 @@ class HttpListenSocket : public net::TCPListenSocket,
const char* data, int len) OVERRIDE;
virtual void DidClose(net::ListenSocket* sock) OVERRIDE;
+ protected:
+ // Overrides TCPListenSocket::AcceptInternal().
+ virtual void AcceptInternal() OVERRIDE;
+
private:
friend class base::RefCountedThreadSafe<net::ListenSocket>;

Powered by Google App Engine
This is Rietveld 408576698