| 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 <memory> | 7 #include <memory> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 lazy_params->media_cache_max_size = media_cache_max_size; | 169 lazy_params->media_cache_max_size = media_cache_max_size; |
| 170 lazy_params->extensions_cookie_path = extensions_cookie_path; | 170 lazy_params->extensions_cookie_path = extensions_cookie_path; |
| 171 lazy_params->session_cookie_mode = session_cookie_mode; | 171 lazy_params->session_cookie_mode = session_cookie_mode; |
| 172 lazy_params->special_storage_policy = special_storage_policy; | 172 lazy_params->special_storage_policy = special_storage_policy; |
| 173 lazy_params->domain_reliability_monitor = | 173 lazy_params->domain_reliability_monitor = |
| 174 std::move(domain_reliability_monitor); | 174 std::move(domain_reliability_monitor); |
| 175 | 175 |
| 176 PrefService* pref_service = profile_->GetPrefs(); | 176 PrefService* pref_service = profile_->GetPrefs(); |
| 177 lazy_params->http_server_properties_manager.reset( | 177 lazy_params->http_server_properties_manager.reset( |
| 178 chrome_browser_net::HttpServerPropertiesManagerFactory::CreateManager( | 178 chrome_browser_net::HttpServerPropertiesManagerFactory::CreateManager( |
| 179 pref_service)); | 179 pref_service, g_browser_process->io_thread()->net_log())); |
| 180 io_data_->http_server_properties_manager_ = | 180 io_data_->http_server_properties_manager_ = |
| 181 lazy_params->http_server_properties_manager.get(); | 181 lazy_params->http_server_properties_manager.get(); |
| 182 | 182 |
| 183 io_data_->lazy_params_.reset(lazy_params); | 183 io_data_->lazy_params_.reset(lazy_params); |
| 184 | 184 |
| 185 // Keep track of profile path and cache sizes separately so we can use them | 185 // Keep track of profile path and cache sizes separately so we can use them |
| 186 // on demand when creating storage isolated URLRequestContextGetters. | 186 // on demand when creating storage isolated URLRequestContextGetters. |
| 187 io_data_->profile_path_ = profile_path; | 187 io_data_->profile_path_ = profile_path; |
| 188 io_data_->app_cache_max_size_ = cache_max_size; | 188 io_data_->app_cache_max_size_ = cache_max_size; |
| 189 io_data_->app_media_cache_max_size_ = media_cache_max_size; | 189 io_data_->app_media_cache_max_size_ = media_cache_max_size; |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 const base::Closure& completion) { | 797 const base::Closure& completion) { |
| 798 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 798 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 799 DCHECK(initialized()); | 799 DCHECK(initialized()); |
| 800 | 800 |
| 801 DCHECK(transport_security_state()); | 801 DCHECK(transport_security_state()); |
| 802 // Completes synchronously. | 802 // Completes synchronously. |
| 803 transport_security_state()->DeleteAllDynamicDataSince(time); | 803 transport_security_state()->DeleteAllDynamicDataSince(time); |
| 804 DCHECK(http_server_properties_manager_); | 804 DCHECK(http_server_properties_manager_); |
| 805 http_server_properties_manager_->Clear(completion); | 805 http_server_properties_manager_->Clear(completion); |
| 806 } | 806 } |
| OLD | NEW |