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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 io_data_->predictor_->ShutdownOnUIThread(); | 113 io_data_->predictor_->ShutdownOnUIThread(); |
114 } | 114 } |
115 | 115 |
116 if (io_data_->http_server_properties_manager_) | 116 if (io_data_->http_server_properties_manager_) |
117 io_data_->http_server_properties_manager_->ShutdownOnPrefThread(); | 117 io_data_->http_server_properties_manager_->ShutdownOnPrefThread(); |
118 | 118 |
119 io_data_->ShutdownOnUIThread(GetAllContextGetters().Pass()); | 119 io_data_->ShutdownOnUIThread(GetAllContextGetters().Pass()); |
120 } | 120 } |
121 | 121 |
122 void ProfileImplIOData::Handle::Init( | 122 void ProfileImplIOData::Handle::Init( |
123 const base::FilePath& cookie_path, | 123 const base::FilePath& cookie_path, |
124 const base::FilePath& channel_id_path, | 124 const base::FilePath& channel_id_path, |
125 const base::FilePath& cache_path, | 125 const base::FilePath& cache_path, |
126 int cache_max_size, | 126 int cache_max_size, |
127 const base::FilePath& media_cache_path, | 127 const base::FilePath& media_cache_path, |
128 int media_cache_max_size, | 128 int media_cache_max_size, |
129 const base::FilePath& extensions_cookie_path, | 129 const base::FilePath& extensions_cookie_path, |
130 const base::FilePath& profile_path, | 130 const base::FilePath& profile_path, |
131 const base::FilePath& infinite_cache_path, | 131 const base::FilePath& infinite_cache_path, |
132 chrome_browser_net::Predictor* predictor, | 132 chrome_browser_net::Predictor* predictor, |
133 content::CookieStoreConfig::SessionCookieMode session_cookie_mode, | 133 content::CookieStoreConfig::SessionCookieMode session_cookie_mode, |
134 quota::SpecialStoragePolicy* special_storage_policy, | 134 storage::SpecialStoragePolicy* special_storage_policy, |
135 scoped_ptr<domain_reliability::DomainReliabilityMonitor> | 135 scoped_ptr<domain_reliability::DomainReliabilityMonitor> |
136 domain_reliability_monitor, | 136 domain_reliability_monitor, |
137 const base::Callback<void(bool)>& data_reduction_proxy_unavailable, | 137 const base::Callback<void(bool)>& data_reduction_proxy_unavailable, |
138 scoped_ptr<DataReductionProxyChromeConfigurator> | 138 scoped_ptr<DataReductionProxyChromeConfigurator> |
139 data_reduction_proxy_chrome_configurator, | 139 data_reduction_proxy_chrome_configurator, |
140 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> | 140 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> |
141 data_reduction_proxy_params) { | 141 data_reduction_proxy_params) { |
142 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 142 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
143 DCHECK(!io_data_->lazy_params_); | 143 DCHECK(!io_data_->lazy_params_); |
144 DCHECK(predictor); | 144 DCHECK(predictor); |
145 | 145 |
146 LazyParams* lazy_params = new LazyParams(); | 146 LazyParams* lazy_params = new LazyParams(); |
147 | 147 |
148 lazy_params->cookie_path = cookie_path; | 148 lazy_params->cookie_path = cookie_path; |
149 lazy_params->channel_id_path = channel_id_path; | 149 lazy_params->channel_id_path = channel_id_path; |
150 lazy_params->cache_path = cache_path; | 150 lazy_params->cache_path = cache_path; |
151 lazy_params->cache_max_size = cache_max_size; | 151 lazy_params->cache_max_size = cache_max_size; |
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 const base::Closure& completion) { | 831 const base::Closure& completion) { |
832 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 832 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
833 DCHECK(initialized()); | 833 DCHECK(initialized()); |
834 | 834 |
835 DCHECK(transport_security_state()); | 835 DCHECK(transport_security_state()); |
836 // Completes synchronously. | 836 // Completes synchronously. |
837 transport_security_state()->DeleteAllDynamicDataSince(time); | 837 transport_security_state()->DeleteAllDynamicDataSince(time); |
838 DCHECK(http_server_properties_manager_); | 838 DCHECK(http_server_properties_manager_); |
839 http_server_properties_manager_->Clear(completion); | 839 http_server_properties_manager_->Clear(completion); |
840 } | 840 } |
OLD | NEW |