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

Unified Diff: net/server/http_connection.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 | « content/shell/browser/shell_devtools_delegate.cc ('k') | net/server/http_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/server/http_connection.h
diff --git a/net/server/http_connection.h b/net/server/http_connection.h
index b0e37663d4f61b696ced07c31d9b9cfdfb11b6f2..17faa46eb6b77304085635364f4a73b65c3c7821 100644
--- a/net/server/http_connection.h
+++ b/net/server/http_connection.h
@@ -8,7 +8,6 @@
#include <string>
#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "net/http/http_status_code.h"
@@ -36,12 +35,10 @@ class HttpConnection {
friend class HttpServer;
static int last_id_;
- HttpConnection(HttpServer* server, StreamListenSocket* sock);
-
- void DetachSocket();
+ HttpConnection(HttpServer* server, scoped_ptr<StreamListenSocket> sock);
HttpServer* server_;
- scoped_refptr<StreamListenSocket> socket_;
+ scoped_ptr<StreamListenSocket> socket_;
scoped_ptr<WebSocket> web_socket_;
std::string recv_data_;
int id_;
« no previous file with comments | « content/shell/browser/shell_devtools_delegate.cc ('k') | net/server/http_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698