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

Unified Diff: net/test/embedded_test_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
Index: net/test/embedded_test_server/http_connection.h
diff --git a/net/test/embedded_test_server/http_connection.h b/net/test/embedded_test_server/http_connection.h
index da9353404c6c840498ba9713707c07b8f2f2bdae..870d12269dd10253f5a28330e6f2eaf0ecb0b010 100644
--- a/net/test/embedded_test_server/http_connection.h
+++ b/net/test/embedded_test_server/http_connection.h
@@ -7,7 +7,6 @@
#include "base/basictypes.h"
#include "base/callback.h"
-#include "base/memory/ref_counted.h"
#include "base/strings/string_piece.h"
#include "net/test/embedded_test_server/http_request.h"
@@ -30,7 +29,7 @@ typedef base::Callback<void(HttpConnection* connection,
// If a valid request is parsed, then |callback_| is invoked.
class HttpConnection {
public:
- HttpConnection(StreamListenSocket* socket,
+ HttpConnection(scoped_ptr<StreamListenSocket> socket,
const HandleRequestCallback& callback);
~HttpConnection();
@@ -45,7 +44,7 @@ class HttpConnection {
// called.
void ReceiveData(const base::StringPiece& data);
- scoped_refptr<StreamListenSocket> socket_;
+ scoped_ptr<StreamListenSocket> socket_;
const HandleRequestCallback callback_;
HttpRequestParser request_parser_;
« no previous file with comments | « net/test/embedded_test_server/embedded_test_server.cc ('k') | net/test/embedded_test_server/http_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698