| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_io_data.h" | 5 #include "chrome/browser/profiles/profile_io_data.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 // Create the common request contexts. | 399 // Create the common request contexts. |
| 400 main_request_context_ = new RequestContext; | 400 main_request_context_ = new RequestContext; |
| 401 extensions_request_context_ = new RequestContext; | 401 extensions_request_context_ = new RequestContext; |
| 402 | 402 |
| 403 profile_params_->appcache_service->set_request_context(main_request_context_); | 403 profile_params_->appcache_service->set_request_context(main_request_context_); |
| 404 | 404 |
| 405 chrome_url_data_manager_backend_.reset(new ChromeURLDataManagerBackend); | 405 chrome_url_data_manager_backend_.reset(new ChromeURLDataManagerBackend); |
| 406 | 406 |
| 407 network_delegate_.reset(new ChromeNetworkDelegate( | 407 network_delegate_.reset(new ChromeNetworkDelegate( |
| 408 io_thread_globals->extension_event_router_forwarder.get(), | 408 io_thread_globals->extension_event_router_forwarder.get(), |
| 409 profile_params_->extension_info_map, |
| 409 profile_params_->profile_id, | 410 profile_params_->profile_id, |
| 410 &enable_referrers_)); | 411 &enable_referrers_)); |
| 411 | 412 |
| 412 dns_cert_checker_.reset( | 413 dns_cert_checker_.reset( |
| 413 CreateDnsCertProvenanceChecker(io_thread_globals->dnsrr_resolver.get(), | 414 CreateDnsCertProvenanceChecker(io_thread_globals->dnsrr_resolver.get(), |
| 414 main_request_context_)); | 415 main_request_context_)); |
| 415 | 416 |
| 416 proxy_service_.reset( | 417 proxy_service_.reset( |
| 417 ProxyServiceFactory::CreateProxyService( | 418 ProxyServiceFactory::CreateProxyService( |
| 418 io_thread->net_log(), | 419 io_thread->net_log(), |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 context->set_appcache_service(profile_params_->appcache_service); | 510 context->set_appcache_service(profile_params_->appcache_service); |
| 510 context->set_blob_storage_context(profile_params_->blob_storage_context); | 511 context->set_blob_storage_context(profile_params_->blob_storage_context); |
| 511 context->set_file_system_context(profile_params_->file_system_context); | 512 context->set_file_system_context(profile_params_->file_system_context); |
| 512 context->set_extension_info_map(profile_params_->extension_info_map); | 513 context->set_extension_info_map(profile_params_->extension_info_map); |
| 513 } | 514 } |
| 514 | 515 |
| 515 void ProfileIOData::ShutdownOnUIThread() { | 516 void ProfileIOData::ShutdownOnUIThread() { |
| 516 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 517 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 517 enable_referrers_.Destroy(); | 518 enable_referrers_.Destroy(); |
| 518 } | 519 } |
| OLD | NEW |