| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.h" | 5 #include "ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 lazy_params_->channel_id_path, | 368 lazy_params_->channel_id_path, |
| 369 web::WebThread::GetBlockingPool()->GetSequencedTaskRunner( | 369 web::WebThread::GetBlockingPool()->GetSequencedTaskRunner( |
| 370 web::WebThread::GetBlockingPool()->GetSequenceToken())); | 370 web::WebThread::GetBlockingPool()->GetSequenceToken())); |
| 371 channel_id_service = new net::ChannelIDService( | 371 channel_id_service = new net::ChannelIDService( |
| 372 new net::DefaultChannelIDStore(channel_id_db.get()), | 372 new net::DefaultChannelIDStore(channel_id_db.get()), |
| 373 base::WorkerPool::GetTaskRunner(true)); | 373 base::WorkerPool::GetTaskRunner(true)); |
| 374 } | 374 } |
| 375 | 375 |
| 376 set_channel_id_service(channel_id_service); | 376 set_channel_id_service(channel_id_service); |
| 377 main_context->set_channel_id_service(channel_id_service); | 377 main_context->set_channel_id_service(channel_id_service); |
| 378 main_cookie_store_->SetChannelIDServiceID(channel_id_service->GetUniqueID()); |
| 378 | 379 |
| 379 scoped_ptr<net::HttpCache::BackendFactory> main_backend( | 380 scoped_ptr<net::HttpCache::BackendFactory> main_backend( |
| 380 new net::HttpCache::DefaultBackend( | 381 new net::HttpCache::DefaultBackend( |
| 381 net::DISK_CACHE, net::CACHE_BACKEND_BLOCKFILE, | 382 net::DISK_CACHE, net::CACHE_BACKEND_BLOCKFILE, |
| 382 lazy_params_->cache_path, lazy_params_->cache_max_size, | 383 lazy_params_->cache_path, lazy_params_->cache_max_size, |
| 383 web::WebThread::GetTaskRunnerForThread(web::WebThread::CACHE))); | 384 web::WebThread::GetTaskRunnerForThread(web::WebThread::CACHE))); |
| 384 http_network_session_ = CreateHttpNetworkSession(*profile_params); | 385 http_network_session_ = CreateHttpNetworkSession(*profile_params); |
| 385 main_http_factory_ = CreateMainHttpFactory(http_network_session_.get(), | 386 main_http_factory_ = CreateMainHttpFactory(http_network_session_.get(), |
| 386 std::move(main_backend)); | 387 std::move(main_backend)); |
| 387 main_context->set_http_transaction_factory(main_http_factory_.get()); | 388 main_context->set_http_transaction_factory(main_http_factory_.get()); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 const base::Closure& completion) { | 463 const base::Closure& completion) { |
| 463 DCHECK_CURRENTLY_ON(web::WebThread::IO); | 464 DCHECK_CURRENTLY_ON(web::WebThread::IO); |
| 464 DCHECK(initialized()); | 465 DCHECK(initialized()); |
| 465 | 466 |
| 466 DCHECK(transport_security_state()); | 467 DCHECK(transport_security_state()); |
| 467 // Completes synchronously. | 468 // Completes synchronously. |
| 468 transport_security_state()->DeleteAllDynamicDataSince(time); | 469 transport_security_state()->DeleteAllDynamicDataSince(time); |
| 469 DCHECK(http_server_properties_manager_); | 470 DCHECK(http_server_properties_manager_); |
| 470 http_server_properties_manager_->Clear(completion); | 471 http_server_properties_manager_->Clear(completion); |
| 471 } | 472 } |
| OLD | NEW |