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

Unified Diff: net/http/http_basic_state.cc

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.h ('k') | net/http/http_basic_state_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_basic_state.cc
diff --git a/net/http/http_basic_state.cc b/net/http/http_basic_state.cc
index 2e5ca06ebe85959f3944c91a107fa7f12af1a8fc..ceadb5761eba00ff916a53972d5303e6f4030f96 100644
--- a/net/http/http_basic_state.cc
+++ b/net/http/http_basic_state.cc
@@ -17,9 +17,10 @@
namespace net {
-HttpBasicState::HttpBasicState(ClientSocketHandle* connection, bool using_proxy)
+HttpBasicState::HttpBasicState(std::unique_ptr<ClientSocketHandle> connection,
+ bool using_proxy)
: read_buf_(new GrowableIOBuffer()),
- connection_(connection),
+ connection_(std::move(connection)),
using_proxy_(using_proxy),
request_info_(NULL) {}
« no previous file with comments | « net/http/http_basic_state.h ('k') | net/http/http_basic_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698