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

Unified Diff: net/http/http_network_session_peer.h

Issue 1298253002: Remove reference counting from HttpNetworkSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 5 years, 2 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_network_session.h ('k') | net/http/http_network_session_peer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_session_peer.h
diff --git a/net/http/http_network_session_peer.h b/net/http/http_network_session_peer.h
index 755e539cebb5f17c6e2c130cb035922c1248020e..ae57f39d2d77b3ab631f45d4de9fd9e04ab46144 100644
--- a/net/http/http_network_session_peer.h
+++ b/net/http/http_network_session_peer.h
@@ -18,8 +18,8 @@ class ProxyService;
class NET_EXPORT_PRIVATE HttpNetworkSessionPeer {
public:
- explicit HttpNetworkSessionPeer(
- const scoped_refptr<HttpNetworkSession>& session);
+ // |session| should outlive the HttpNetworkSessionPeer.
+ explicit HttpNetworkSessionPeer(HttpNetworkSession* session);
~HttpNetworkSessionPeer();
void SetClientSocketPoolManager(
@@ -32,7 +32,7 @@ class NET_EXPORT_PRIVATE HttpNetworkSessionPeer {
scoped_ptr<HttpStreamFactory> http_stream_factory_for_websocket);
private:
- const scoped_refptr<HttpNetworkSession> session_;
+ HttpNetworkSession* const session_;
DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer);
};
« no previous file with comments | « net/http/http_network_session.h ('k') | net/http/http_network_session_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698