| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 // below try to get the ResourceContext pointer. | 312 // below try to get the ResourceContext pointer. |
| 313 initialized_ = true; | 313 initialized_ = true; |
| 314 PrefService* pref_service = profile_->GetPrefs(); | 314 PrefService* pref_service = profile_->GetPrefs(); |
| 315 io_data_->http_server_properties_manager_ = | 315 io_data_->http_server_properties_manager_ = |
| 316 new chrome_browser_net::HttpServerPropertiesManager(pref_service); | 316 new chrome_browser_net::HttpServerPropertiesManager(pref_service); |
| 317 io_data_->set_http_server_properties( | 317 io_data_->set_http_server_properties( |
| 318 scoped_ptr<net::HttpServerProperties>( | 318 scoped_ptr<net::HttpServerProperties>( |
| 319 io_data_->http_server_properties_manager_)); | 319 io_data_->http_server_properties_manager_)); |
| 320 io_data_->session_startup_pref()->Init( | 320 io_data_->session_startup_pref()->Init( |
| 321 prefs::kRestoreOnStartup, pref_service); | 321 prefs::kRestoreOnStartup, pref_service); |
| 322 io_data_->session_startup_pref()->MoveToThread( | 322 io_data_->session_startup_pref()->MoveToTaskRunner( |
| 323 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 323 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
| 324 #if defined(FULL_SAFE_BROWSING) || defined(MOBILE_SAFE_BROWSING) | 324 #if defined(FULL_SAFE_BROWSING) || defined(MOBILE_SAFE_BROWSING) |
| 325 io_data_->safe_browsing_enabled()->Init(prefs::kSafeBrowsingEnabled, | 325 io_data_->safe_browsing_enabled()->Init(prefs::kSafeBrowsingEnabled, |
| 326 pref_service); | 326 pref_service); |
| 327 io_data_->safe_browsing_enabled()->MoveToThread( | 327 io_data_->safe_browsing_enabled()->MoveToTaskRunner( |
| 328 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 328 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
| 329 #endif | 329 #endif |
| 330 #if defined(OS_ANDROID) || defined(OS_IOS) | 330 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 331 io_data_->data_reduction_proxy_enabled()->Init( | 331 io_data_->data_reduction_proxy_enabled()->Init( |
| 332 data_reduction_proxy::prefs::kDataReductionProxyEnabled, pref_service); | 332 data_reduction_proxy::prefs::kDataReductionProxyEnabled, pref_service); |
| 333 io_data_->data_reduction_proxy_enabled()->MoveToThread( | 333 io_data_->data_reduction_proxy_enabled()->MoveToTaskRunner( |
| 334 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 334 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
| 335 #endif | 335 #endif |
| 336 io_data_->InitializeOnUIThread(profile_); | 336 io_data_->InitializeOnUIThread(profile_); |
| 337 } | 337 } |
| 338 | 338 |
| 339 ProfileImplIOData::LazyParams::LazyParams() | 339 ProfileImplIOData::LazyParams::LazyParams() |
| 340 : cache_max_size(0), | 340 : cache_max_size(0), |
| 341 media_cache_max_size(0), | 341 media_cache_max_size(0), |
| 342 session_cookie_mode( | 342 session_cookie_mode( |
| 343 content::CookieStoreConfig::EPHEMERAL_SESSION_COOKIES) {} | 343 content::CookieStoreConfig::EPHEMERAL_SESSION_COOKIES) {} |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 750 const base::Closure& completion) { | 750 const base::Closure& completion) { |
| 751 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 751 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 752 DCHECK(initialized()); | 752 DCHECK(initialized()); |
| 753 | 753 |
| 754 DCHECK(transport_security_state()); | 754 DCHECK(transport_security_state()); |
| 755 // Completes synchronously. | 755 // Completes synchronously. |
| 756 transport_security_state()->DeleteAllDynamicDataSince(time); | 756 transport_security_state()->DeleteAllDynamicDataSince(time); |
| 757 DCHECK(http_server_properties_manager_); | 757 DCHECK(http_server_properties_manager_); |
| 758 http_server_properties_manager_->Clear(completion); | 758 http_server_properties_manager_->Clear(completion); |
| 759 } | 759 } |
| OLD | NEW |