| 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 lazy_params_->cache_path, | 294 lazy_params_->cache_path, |
| 295 lazy_params_->cache_max_size, | 295 lazy_params_->cache_max_size, |
| 296 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE)); | 296 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE)); |
| 297 net::HttpCache* main_cache = new net::HttpCache( | 297 net::HttpCache* main_cache = new net::HttpCache( |
| 298 main_context->host_resolver(), | 298 main_context->host_resolver(), |
| 299 main_context->cert_verifier(), | 299 main_context->cert_verifier(), |
| 300 main_context->origin_bound_cert_service(), | 300 main_context->origin_bound_cert_service(), |
| 301 main_context->dnsrr_resolver(), | 301 main_context->dnsrr_resolver(), |
| 302 main_context->dns_cert_checker(), | 302 main_context->dns_cert_checker(), |
| 303 main_context->proxy_service(), | 303 main_context->proxy_service(), |
| 304 main_context->spdy_config_service(), |
| 304 main_context->ssl_config_service(), | 305 main_context->ssl_config_service(), |
| 305 main_context->http_auth_handler_factory(), | 306 main_context->http_auth_handler_factory(), |
| 306 main_context->network_delegate(), | 307 main_context->network_delegate(), |
| 307 main_context->net_log(), | 308 main_context->net_log(), |
| 308 main_backend); | 309 main_backend); |
| 309 | 310 |
| 310 net::HttpCache::DefaultBackend* media_backend = | 311 net::HttpCache::DefaultBackend* media_backend = |
| 311 new net::HttpCache::DefaultBackend( | 312 new net::HttpCache::DefaultBackend( |
| 312 net::MEDIA_CACHE, lazy_params_->media_cache_path, | 313 net::MEDIA_CACHE, lazy_params_->media_cache_path, |
| 313 lazy_params_->media_cache_max_size, | 314 lazy_params_->media_cache_max_size, |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 scoped_refptr<ChromeURLRequestContext> | 411 scoped_refptr<ChromeURLRequestContext> |
| 411 ProfileImplIOData::AcquireIsolatedAppRequestContext( | 412 ProfileImplIOData::AcquireIsolatedAppRequestContext( |
| 412 scoped_refptr<ChromeURLRequestContext> main_context, | 413 scoped_refptr<ChromeURLRequestContext> main_context, |
| 413 const std::string& app_id) const { | 414 const std::string& app_id) const { |
| 414 // We create per-app contexts on demand, unlike the others above. | 415 // We create per-app contexts on demand, unlike the others above. |
| 415 scoped_refptr<ChromeURLRequestContext> app_request_context = | 416 scoped_refptr<ChromeURLRequestContext> app_request_context = |
| 416 InitializeAppRequestContext(main_context, app_id); | 417 InitializeAppRequestContext(main_context, app_id); |
| 417 DCHECK(app_request_context); | 418 DCHECK(app_request_context); |
| 418 return app_request_context; | 419 return app_request_context; |
| 419 } | 420 } |
| OLD | NEW |