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

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

Issue 1547273003: Set trusted SPDY proxy dynamically on per-profile basis (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added net/base/test_proxy_delegate.{h,cc} Created 4 years, 10 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
« no previous file with comments | « net/http/http_network_session.h ('k') | net/http/http_network_transaction_unittest.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/atomic_sequence_num.h" 9 #include "base/atomic_sequence_num.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 params.ssl_config_service, 191 params.ssl_config_service,
192 params.http_server_properties, 192 params.http_server_properties,
193 params.transport_security_state, 193 params.transport_security_state,
194 params.enable_spdy_compression, 194 params.enable_spdy_compression,
195 params.enable_spdy_ping_based_connection_checking, 195 params.enable_spdy_ping_based_connection_checking,
196 params.spdy_default_protocol, 196 params.spdy_default_protocol,
197 params.spdy_session_max_recv_window_size, 197 params.spdy_session_max_recv_window_size,
198 params.spdy_stream_max_recv_window_size, 198 params.spdy_stream_max_recv_window_size,
199 params.spdy_initial_max_concurrent_streams, 199 params.spdy_initial_max_concurrent_streams,
200 params.time_func, 200 params.time_func,
201 params.trusted_spdy_proxy), 201 params.proxy_delegate),
202 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), 202 http_stream_factory_(new HttpStreamFactoryImpl(this, false)),
203 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)), 203 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)),
204 params_(params) { 204 params_(params) {
205 DCHECK(proxy_service_); 205 DCHECK(proxy_service_);
206 DCHECK(ssl_config_service_.get()); 206 DCHECK(ssl_config_service_.get());
207 CHECK(http_server_properties_); 207 CHECK(http_server_properties_);
208 208
209 const std::string ssl_session_cache_shard = 209 const std::string ssl_session_cache_shard =
210 "http_network_session/" + base::IntToString(g_next_shard_id.GetNext()); 210 "http_network_session/" + base::IntToString(g_next_shard_id.GetNext());
211 normal_socket_pool_manager_.reset(CreateSocketPoolManager( 211 normal_socket_pool_manager_.reset(CreateSocketPoolManager(
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 case WEBSOCKET_SOCKET_POOL: 392 case WEBSOCKET_SOCKET_POOL:
393 return websocket_socket_pool_manager_.get(); 393 return websocket_socket_pool_manager_.get();
394 default: 394 default:
395 NOTREACHED(); 395 NOTREACHED();
396 break; 396 break;
397 } 397 }
398 return NULL; 398 return NULL;
399 } 399 }
400 400
401 } // namespace net 401 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_session.h ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698