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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 lazy_params_->cache_path, | 365 lazy_params_->cache_path, |
366 lazy_params_->cache_max_size, | 366 lazy_params_->cache_max_size, |
367 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE)); | 367 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE)); |
368 net::HttpCache* main_cache = new net::HttpCache( | 368 net::HttpCache* main_cache = new net::HttpCache( |
369 main_context->host_resolver(), | 369 main_context->host_resolver(), |
370 main_context->cert_verifier(), | 370 main_context->cert_verifier(), |
371 main_context->origin_bound_cert_service(), | 371 main_context->origin_bound_cert_service(), |
372 main_context->transport_security_state(), | 372 main_context->transport_security_state(), |
373 main_context->dns_cert_checker(), | 373 main_context->dns_cert_checker(), |
374 main_context->proxy_service(), | 374 main_context->proxy_service(), |
| 375 "", // pass empty ssl_session_cache_shard to share the SSL session cache |
| 376 // with everything that doesn't explicitly want a different one. |
375 main_context->ssl_config_service(), | 377 main_context->ssl_config_service(), |
376 main_context->http_auth_handler_factory(), | 378 main_context->http_auth_handler_factory(), |
377 main_context->network_delegate(), | 379 main_context->network_delegate(), |
378 main_context->http_server_properties(), | 380 main_context->http_server_properties(), |
379 main_context->net_log(), | 381 main_context->net_log(), |
380 main_backend); | 382 main_backend); |
381 | 383 |
382 net::HttpCache::DefaultBackend* media_backend = | 384 net::HttpCache::DefaultBackend* media_backend = |
383 new net::HttpCache::DefaultBackend( | 385 new net::HttpCache::DefaultBackend( |
384 net::MEDIA_CACHE, lazy_params_->media_cache_path, | 386 net::MEDIA_CACHE, lazy_params_->media_cache_path, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 scoped_refptr<ChromeURLRequestContext> | 492 scoped_refptr<ChromeURLRequestContext> |
491 ProfileImplIOData::AcquireIsolatedAppRequestContext( | 493 ProfileImplIOData::AcquireIsolatedAppRequestContext( |
492 scoped_refptr<ChromeURLRequestContext> main_context, | 494 scoped_refptr<ChromeURLRequestContext> main_context, |
493 const std::string& app_id) const { | 495 const std::string& app_id) const { |
494 // We create per-app contexts on demand, unlike the others above. | 496 // We create per-app contexts on demand, unlike the others above. |
495 scoped_refptr<ChromeURLRequestContext> app_request_context = | 497 scoped_refptr<ChromeURLRequestContext> app_request_context = |
496 InitializeAppRequestContext(main_context, app_id); | 498 InitializeAppRequestContext(main_context, app_id); |
497 DCHECK(app_request_context); | 499 DCHECK(app_request_context); |
498 return app_request_context; | 500 return app_request_context; |
499 } | 501 } |
OLD | NEW |