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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 | 363 |
364 BrowserThread::PostTask( | 364 BrowserThread::PostTask( |
365 BrowserThread::IO, FROM_HERE, | 365 BrowserThread::IO, FROM_HERE, |
366 base::Bind( | 366 base::Bind( |
367 &ProfileImplIOData::ClearNetworkingHistorySinceOnIOThread, | 367 &ProfileImplIOData::ClearNetworkingHistorySinceOnIOThread, |
368 base::Unretained(io_data_), | 368 base::Unretained(io_data_), |
369 time, | 369 time, |
370 completion)); | 370 completion)); |
371 } | 371 } |
372 | 372 |
| 373 void ProfileImplIOData::Handle::UpdateNetParamsOnIOThread( |
| 374 net::HttpNetworkSession::ParamsUpdate params_update) { |
| 375 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 376 |
| 377 io_data_->UpdateNetParamsOnIOThread(params_update); |
| 378 } |
| 379 |
373 void ProfileImplIOData::Handle::LazyInitialize() const { | 380 void ProfileImplIOData::Handle::LazyInitialize() const { |
374 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 381 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
375 if (initialized_) | 382 if (initialized_) |
376 return; | 383 return; |
377 | 384 |
378 // Set initialized_ to true at the beginning in case any of the objects | 385 // Set initialized_ to true at the beginning in case any of the objects |
379 // below try to get the ResourceContext pointer. | 386 // below try to get the ResourceContext pointer. |
380 initialized_ = true; | 387 initialized_ = true; |
381 PrefService* pref_service = profile_->GetPrefs(); | 388 PrefService* pref_service = profile_->GetPrefs(); |
382 io_data_->session_startup_pref()->Init( | 389 io_data_->session_startup_pref()->Init( |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 const base::Closure& completion) { | 822 const base::Closure& completion) { |
816 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 823 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
817 DCHECK(initialized()); | 824 DCHECK(initialized()); |
818 | 825 |
819 DCHECK(transport_security_state()); | 826 DCHECK(transport_security_state()); |
820 // Completes synchronously. | 827 // Completes synchronously. |
821 transport_security_state()->DeleteAllDynamicDataSince(time); | 828 transport_security_state()->DeleteAllDynamicDataSince(time); |
822 DCHECK(http_server_properties_manager_); | 829 DCHECK(http_server_properties_manager_); |
823 http_server_properties_manager_->Clear(completion); | 830 http_server_properties_manager_->Clear(completion); |
824 } | 831 } |
OLD | NEW |