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

Side by Side Diff: net/http/http_network_session.cc

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/http/http_network_session.h ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/http/http_network_session.h" 5 #include "net/http/http_network_session.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/debug/stack_trace.h" 10 #include "base/debug/stack_trace.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 params.enable_spdy_ping_based_connection_checking, 123 params.enable_spdy_ping_based_connection_checking,
124 params.spdy_default_protocol, 124 params.spdy_default_protocol,
125 params.spdy_stream_initial_recv_window_size, 125 params.spdy_stream_initial_recv_window_size,
126 params.spdy_initial_max_concurrent_streams, 126 params.spdy_initial_max_concurrent_streams,
127 params.spdy_max_concurrent_streams_limit, 127 params.spdy_max_concurrent_streams_limit,
128 params.time_func, 128 params.time_func,
129 params.trusted_spdy_proxy), 129 params.trusted_spdy_proxy),
130 http_stream_factory_(new HttpStreamFactoryImpl(this)), 130 http_stream_factory_(new HttpStreamFactoryImpl(this)),
131 params_(params) { 131 params_(params) {
132 DCHECK(proxy_service_); 132 DCHECK(proxy_service_);
133 DCHECK(ssl_config_service_); 133 DCHECK(ssl_config_service_.get());
134 CHECK(http_server_properties_); 134 CHECK(http_server_properties_);
135 } 135 }
136 136
137 HttpNetworkSession::~HttpNetworkSession() { 137 HttpNetworkSession::~HttpNetworkSession() {
138 STLDeleteElements(&response_drainers_); 138 STLDeleteElements(&response_drainers_);
139 spdy_session_pool_.CloseAllSessions(); 139 spdy_session_pool_.CloseAllSessions();
140 } 140 }
141 141
142 void HttpNetworkSession::AddResponseDrainer(HttpResponseBodyDrainer* drainer) { 142 void HttpNetworkSession::AddResponseDrainer(HttpResponseBodyDrainer* drainer) {
143 DCHECK(!ContainsKey(response_drainers_, drainer)); 143 DCHECK(!ContainsKey(response_drainers_, drainer));
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 case WEBSOCKET_SOCKET_POOL: 219 case WEBSOCKET_SOCKET_POOL:
220 return websocket_socket_pool_manager_.get(); 220 return websocket_socket_pool_manager_.get();
221 default: 221 default:
222 NOTREACHED(); 222 NOTREACHED();
223 break; 223 break;
224 } 224 }
225 return NULL; 225 return NULL;
226 } 226 }
227 227
228 } // namespace net 228 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_session.h ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698