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

Unified Diff: net/server/http_server.h

Issue 20142003: Remove ref-counting from StreamListenSocket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 7 years, 4 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/server/http_connection.cc ('k') | net/server/http_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/server/http_server.h
diff --git a/net/server/http_server.h b/net/server/http_server.h
index f4345752e2dd2b07a9965f5f7f62b3a63f851168..51bec95688926397444704793a7f96d24b4b1039 100644
--- a/net/server/http_server.h
+++ b/net/server/http_server.h
@@ -9,7 +9,7 @@
#include <map>
#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "net/http/http_status_code.h"
#include "net/socket/stream_listen_socket.h"
@@ -65,7 +65,7 @@ class HttpServer : public StreamListenSocket::Delegate,
// ListenSocketDelegate
virtual void DidAccept(StreamListenSocket* server,
- StreamListenSocket* socket) OVERRIDE;
+ scoped_ptr<StreamListenSocket> socket) OVERRIDE;
virtual void DidRead(StreamListenSocket* socket,
const char* data,
int len) OVERRIDE;
@@ -89,7 +89,7 @@ class HttpServer : public StreamListenSocket::Delegate,
HttpConnection* FindConnection(StreamListenSocket* socket);
HttpServer::Delegate* delegate_;
- scoped_refptr<StreamListenSocket> server_;
+ scoped_ptr<StreamListenSocket> server_;
typedef std::map<int, HttpConnection*> IdToConnectionMap;
IdToConnectionMap id_to_connection_;
typedef std::map<StreamListenSocket*, HttpConnection*> SocketToConnectionMap;
« no previous file with comments | « net/server/http_connection.cc ('k') | net/server/http_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698