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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 network_delegate(), | 576 network_delegate(), |
577 ftp_factory_.get()); | 577 ftp_factory_.get()); |
578 main_context->set_job_factory(main_job_factory_.get()); | 578 main_context->set_job_factory(main_job_factory_.get()); |
579 | 579 |
580 #if defined(ENABLE_EXTENSIONS) | 580 #if defined(ENABLE_EXTENSIONS) |
581 InitializeExtensionsRequestContext(profile_params); | 581 InitializeExtensionsRequestContext(profile_params); |
582 #endif | 582 #endif |
583 | 583 |
584 // Setup the SDCHManager for this profile. | 584 // Setup the SDCHManager for this profile. |
585 sdch_manager_.reset(new net::SdchManager); | 585 sdch_manager_.reset(new net::SdchManager); |
586 | |
587 scoped_refptr<net::URLRequestContextGetter> getter( | |
588 new net::TrivialURLRequestContextGetter( | |
589 main_context, | |
590 content::BrowserThread::GetMessageLoopProxyForThread( | |
591 content::BrowserThread::IO))); | |
592 | |
593 sdch_manager_->set_sdch_fetcher(scoped_ptr<net::SdchFetcher>( | 586 sdch_manager_->set_sdch_fetcher(scoped_ptr<net::SdchFetcher>( |
594 new net::SdchDictionaryFetcher(sdch_manager_.get(), getter)).Pass()); | 587 new net::SdchDictionaryFetcher(sdch_manager_.get(), |
595 | 588 main_context)).Pass()); |
596 main_context->set_sdch_manager(sdch_manager_.get()); | 589 main_context->set_sdch_manager(sdch_manager_.get()); |
597 | 590 |
598 // Create a media request context based on the main context, but using a | 591 // Create a media request context based on the main context, but using a |
599 // media cache. It shares the same job factory as the main context. | 592 // media cache. It shares the same job factory as the main context. |
600 StoragePartitionDescriptor details(profile_path_, false); | 593 StoragePartitionDescriptor details(profile_path_, false); |
601 media_request_context_.reset(InitializeMediaRequestContext(main_context, | 594 media_request_context_.reset(InitializeMediaRequestContext(main_context, |
602 details)); | 595 details)); |
603 | 596 |
604 if (domain_reliability_monitor_) { | 597 if (domain_reliability_monitor_) { |
605 domain_reliability::DomainReliabilityMonitor* monitor = | 598 domain_reliability::DomainReliabilityMonitor* monitor = |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 const base::Closure& completion) { | 828 const base::Closure& completion) { |
836 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 829 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
837 DCHECK(initialized()); | 830 DCHECK(initialized()); |
838 | 831 |
839 DCHECK(transport_security_state()); | 832 DCHECK(transport_security_state()); |
840 // Completes synchronously. | 833 // Completes synchronously. |
841 transport_security_state()->DeleteAllDynamicDataSince(time); | 834 transport_security_state()->DeleteAllDynamicDataSince(time); |
842 DCHECK(http_server_properties_manager_); | 835 DCHECK(http_server_properties_manager_); |
843 http_server_properties_manager_->Clear(completion); | 836 http_server_properties_manager_->Clear(completion); |
844 } | 837 } |
OLD | NEW |