| 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 main_context->cert_verifier(), | 367 main_context->cert_verifier(), |
| 368 main_context->origin_bound_cert_service(), | 368 main_context->origin_bound_cert_service(), |
| 369 main_context->dnsrr_resolver(), | 369 main_context->dnsrr_resolver(), |
| 370 main_context->dns_cert_checker(), | 370 main_context->dns_cert_checker(), |
| 371 main_context->proxy_service(), | 371 main_context->proxy_service(), |
| 372 main_context->ssl_config_service(), | 372 main_context->ssl_config_service(), |
| 373 main_context->http_auth_handler_factory(), | 373 main_context->http_auth_handler_factory(), |
| 374 main_context->network_delegate(), | 374 main_context->network_delegate(), |
| 375 main_context->http_server_properties(), | 375 main_context->http_server_properties(), |
| 376 main_context->net_log(), | 376 main_context->net_log(), |
| 377 main_backend); | 377 main_backend, |
| 378 net::HttpCache::USE_CLEANUP_TIMER); |
| 378 | 379 |
| 379 net::HttpCache::DefaultBackend* media_backend = | 380 net::HttpCache::DefaultBackend* media_backend = |
| 380 new net::HttpCache::DefaultBackend( | 381 new net::HttpCache::DefaultBackend( |
| 381 net::MEDIA_CACHE, lazy_params_->media_cache_path, | 382 net::MEDIA_CACHE, lazy_params_->media_cache_path, |
| 382 lazy_params_->media_cache_max_size, | 383 lazy_params_->media_cache_max_size, |
| 383 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE)); | 384 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE)); |
| 384 net::HttpNetworkSession* main_network_session = main_cache->GetSession(); | 385 net::HttpNetworkSession* main_network_session = main_cache->GetSession(); |
| 385 net::HttpCache* media_cache = | 386 net::HttpCache* media_cache = |
| 386 new net::HttpCache(main_network_session, media_backend); | 387 new net::HttpCache(main_network_session, media_backend); |
| 387 | 388 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 scoped_refptr<ChromeURLRequestContext> | 488 scoped_refptr<ChromeURLRequestContext> |
| 488 ProfileImplIOData::AcquireIsolatedAppRequestContext( | 489 ProfileImplIOData::AcquireIsolatedAppRequestContext( |
| 489 scoped_refptr<ChromeURLRequestContext> main_context, | 490 scoped_refptr<ChromeURLRequestContext> main_context, |
| 490 const std::string& app_id) const { | 491 const std::string& app_id) const { |
| 491 // We create per-app contexts on demand, unlike the others above. | 492 // We create per-app contexts on demand, unlike the others above. |
| 492 scoped_refptr<ChromeURLRequestContext> app_request_context = | 493 scoped_refptr<ChromeURLRequestContext> app_request_context = |
| 493 InitializeAppRequestContext(main_context, app_id); | 494 InitializeAppRequestContext(main_context, app_id); |
| 494 DCHECK(app_request_context); | 495 DCHECK(app_request_context); |
| 495 return app_request_context; | 496 return app_request_context; |
| 496 } | 497 } |
| OLD | NEW |