OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/profiles/profile_impl_io_data.h" | 5 #include "chrome/browser/profiles/profile_impl_io_data.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 transport_security_state()); | 253 transport_security_state()); |
254 extensions_context->set_transport_security_state(transport_security_state()); | 254 extensions_context->set_transport_security_state(transport_security_state()); |
255 | 255 |
256 main_context->set_net_log(io_thread->net_log()); | 256 main_context->set_net_log(io_thread->net_log()); |
257 media_request_context_->set_net_log(io_thread->net_log()); | 257 media_request_context_->set_net_log(io_thread->net_log()); |
258 extensions_context->set_net_log(io_thread->net_log()); | 258 extensions_context->set_net_log(io_thread->net_log()); |
259 | 259 |
260 main_context->set_network_delegate(network_delegate()); | 260 main_context->set_network_delegate(network_delegate()); |
261 media_request_context_->set_network_delegate(network_delegate()); | 261 media_request_context_->set_network_delegate(network_delegate()); |
262 | 262 |
| 263 main_context->set_http_server_properties(http_server_properties()); |
| 264 media_request_context_->set_http_server_properties(http_server_properties()); |
| 265 |
263 main_context->set_host_resolver( | 266 main_context->set_host_resolver( |
264 io_thread_globals->host_resolver.get()); | 267 io_thread_globals->host_resolver.get()); |
265 media_request_context_->set_host_resolver( | 268 media_request_context_->set_host_resolver( |
266 io_thread_globals->host_resolver.get()); | 269 io_thread_globals->host_resolver.get()); |
267 main_context->set_cert_verifier( | 270 main_context->set_cert_verifier( |
268 io_thread_globals->cert_verifier.get()); | 271 io_thread_globals->cert_verifier.get()); |
269 media_request_context_->set_cert_verifier( | 272 media_request_context_->set_cert_verifier( |
270 io_thread_globals->cert_verifier.get()); | 273 io_thread_globals->cert_verifier.get()); |
271 main_context->set_dnsrr_resolver( | 274 main_context->set_dnsrr_resolver( |
272 io_thread_globals->dnsrr_resolver.get()); | 275 io_thread_globals->dnsrr_resolver.get()); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 net::HttpCache* main_cache = new net::HttpCache( | 349 net::HttpCache* main_cache = new net::HttpCache( |
347 main_context->host_resolver(), | 350 main_context->host_resolver(), |
348 main_context->cert_verifier(), | 351 main_context->cert_verifier(), |
349 main_context->origin_bound_cert_service(), | 352 main_context->origin_bound_cert_service(), |
350 main_context->dnsrr_resolver(), | 353 main_context->dnsrr_resolver(), |
351 main_context->dns_cert_checker(), | 354 main_context->dns_cert_checker(), |
352 main_context->proxy_service(), | 355 main_context->proxy_service(), |
353 main_context->ssl_config_service(), | 356 main_context->ssl_config_service(), |
354 main_context->http_auth_handler_factory(), | 357 main_context->http_auth_handler_factory(), |
355 main_context->network_delegate(), | 358 main_context->network_delegate(), |
| 359 main_context->http_server_properties(), |
356 main_context->net_log(), | 360 main_context->net_log(), |
357 main_backend); | 361 main_backend); |
358 | 362 |
359 net::HttpCache::DefaultBackend* media_backend = | 363 net::HttpCache::DefaultBackend* media_backend = |
360 new net::HttpCache::DefaultBackend( | 364 new net::HttpCache::DefaultBackend( |
361 net::MEDIA_CACHE, lazy_params_->media_cache_path, | 365 net::MEDIA_CACHE, lazy_params_->media_cache_path, |
362 lazy_params_->media_cache_max_size, | 366 lazy_params_->media_cache_max_size, |
363 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE)); | 367 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE)); |
364 net::HttpNetworkSession* main_network_session = main_cache->GetSession(); | 368 net::HttpNetworkSession* main_network_session = main_cache->GetSession(); |
365 net::HttpCache* media_cache = | 369 net::HttpCache* media_cache = |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 scoped_refptr<ChromeURLRequestContext> | 466 scoped_refptr<ChromeURLRequestContext> |
463 ProfileImplIOData::AcquireIsolatedAppRequestContext( | 467 ProfileImplIOData::AcquireIsolatedAppRequestContext( |
464 scoped_refptr<ChromeURLRequestContext> main_context, | 468 scoped_refptr<ChromeURLRequestContext> main_context, |
465 const std::string& app_id) const { | 469 const std::string& app_id) const { |
466 // We create per-app contexts on demand, unlike the others above. | 470 // We create per-app contexts on demand, unlike the others above. |
467 scoped_refptr<ChromeURLRequestContext> app_request_context = | 471 scoped_refptr<ChromeURLRequestContext> app_request_context = |
468 InitializeAppRequestContext(main_context, app_id); | 472 InitializeAppRequestContext(main_context, app_id); |
469 DCHECK(app_request_context); | 473 DCHECK(app_request_context); |
470 return app_request_context; | 474 return app_request_context; |
471 } | 475 } |
OLD | NEW |