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

Unified Diff: net/http/http_basic_stream.h

Issue 2255883002: Pass ClientSocketHandle ownership around in unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/http/http_basic_state_unittest.cc ('k') | net/http/http_basic_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_basic_stream.h
diff --git a/net/http/http_basic_stream.h b/net/http/http_basic_stream.h
index cb3ea2fd517dcdf9549a858562a6dc0197873995..53fad144112bf61368b6c5c0ccc2c555d354f018 100644
--- a/net/http/http_basic_stream.h
+++ b/net/http/http_basic_stream.h
@@ -11,6 +11,7 @@
#include <stdint.h>
+#include <memory>
#include <string>
#include "base/macros.h"
@@ -32,7 +33,8 @@ class NET_EXPORT_PRIVATE HttpBasicStream : public HttpStream {
public:
// Constructs a new HttpBasicStream. InitializeStream must be called to
// initialize it correctly.
- HttpBasicStream(ClientSocketHandle* connection, bool using_proxy);
+ HttpBasicStream(std::unique_ptr<ClientSocketHandle> connection,
+ bool using_proxy);
~HttpBasicStream() override;
// HttpStream methods:
« no previous file with comments | « net/http/http_basic_state_unittest.cc ('k') | net/http/http_basic_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698