Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "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/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 436 main_context->set_server_bound_cert_service(server_bound_cert_service); | 436 main_context->set_server_bound_cert_service(server_bound_cert_service); |
| 437 | 437 |
| 438 net::HttpCache::DefaultBackend* main_backend = | 438 net::HttpCache::DefaultBackend* main_backend = |
| 439 new net::HttpCache::DefaultBackend( | 439 new net::HttpCache::DefaultBackend( |
| 440 net::DISK_CACHE, | 440 net::DISK_CACHE, |
| 441 ChooseCacheBackendType(), | 441 ChooseCacheBackendType(), |
| 442 lazy_params_->cache_path, | 442 lazy_params_->cache_path, |
| 443 lazy_params_->cache_max_size, | 443 lazy_params_->cache_max_size, |
| 444 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE) | 444 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE) |
| 445 .get()); | 445 .get()); |
| 446 net::HttpNetworkSession::Params network_session_params; | 446 InitializeNetworkTransactionFactory(profile_params); |
| 447 PopulateNetworkSessionParams(profile_params, &network_session_params); | 447 net::HttpTransactionFactory* network_layer = network_transaction_factory(); |
| 448 net::HttpCache* main_cache = new net::HttpCache( | 448 net::HttpCache* main_cache = new net::HttpCache(network_layer, |
| 449 network_session_params, main_backend); | 449 network_layer->GetSession()->net_log(), main_backend); |
|
mmenke
2014/03/07 19:38:08
This constructor doesn't initialize QUIC. You sho
| |
| 450 main_cache->InitializeInfiniteCache(lazy_params_->infinite_cache_path); | 450 main_cache->InitializeInfiniteCache(lazy_params_->infinite_cache_path); |
| 451 | 451 |
| 452 #if defined(OS_ANDROID) || defined(OS_IOS) | 452 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 453 DataReductionProxySettings::InitDataReductionProxySession( | 453 DataReductionProxySettings::InitDataReductionProxySession( |
| 454 main_cache->GetSession()); | 454 main_cache->GetSession()); |
| 455 #endif | 455 #endif |
| 456 | 456 |
| 457 if (chrome_browser_net::ShouldUseInMemoryCookiesAndCache()) { | 457 if (chrome_browser_net::ShouldUseInMemoryCookiesAndCache()) { |
| 458 main_cache->set_mode( | 458 main_cache->set_mode( |
| 459 chrome_browser_net::IsCookieRecordMode() ? | 459 chrome_browser_net::IsCookieRecordMode() ? |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 707 const base::Closure& completion) { | 707 const base::Closure& completion) { |
| 708 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 708 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 709 DCHECK(initialized()); | 709 DCHECK(initialized()); |
| 710 | 710 |
| 711 DCHECK(transport_security_state()); | 711 DCHECK(transport_security_state()); |
| 712 // Completes synchronously. | 712 // Completes synchronously. |
| 713 transport_security_state()->DeleteAllDynamicDataSince(time); | 713 transport_security_state()->DeleteAllDynamicDataSince(time); |
| 714 DCHECK(http_server_properties_manager_); | 714 DCHECK(http_server_properties_manager_); |
| 715 http_server_properties_manager_->Clear(completion); | 715 http_server_properties_manager_->Clear(completion); |
| 716 } | 716 } |
| OLD | NEW |