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

Unified Diff: net/socket_stream/socket_stream.h

Issue 10299002: Stop refcounting URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More fixes Created 8 years, 8 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/socket_stream/socket_stream.h
diff --git a/net/socket_stream/socket_stream.h b/net/socket_stream/socket_stream.h
index 7f071963146d9c026a460e48e84c01794528315a..c7c503e7519bd091d281f71bc309fd682f520f29 100644
--- a/net/socket_stream/socket_stream.h
+++ b/net/socket_stream/socket_stream.h
@@ -138,8 +138,8 @@ class NET_EXPORT SocketStream
Delegate* delegate() const { return delegate_; }
int max_pending_send_allowed() const { return max_pending_send_allowed_; }
- URLRequestContext* context() const { return context_.get(); }
- void set_context(URLRequestContext* context);
+ const URLRequestContext* context() const { return context_; }
+ void set_context(const URLRequestContext* context);
BoundNetLog* net_log() { return &net_log_; }
@@ -322,7 +322,7 @@ class NET_EXPORT SocketStream
GURL url_;
int max_pending_send_allowed_;
- scoped_refptr<URLRequestContext> context_;
+ const URLRequestContext* context_;
UserDataMap user_data_;

Powered by Google App Engine
This is Rietveld 408576698