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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 // Create the common request contexts. | 388 // Create the common request contexts. |
389 main_request_context_ = new RequestContext; | 389 main_request_context_ = new RequestContext; |
390 extensions_request_context_ = new RequestContext; | 390 extensions_request_context_ = new RequestContext; |
391 | 391 |
392 profile_params_->appcache_service->set_request_context(main_request_context_); | 392 profile_params_->appcache_service->set_request_context(main_request_context_); |
393 | 393 |
394 chrome_url_data_manager_backend_.reset(new ChromeURLDataManagerBackend); | 394 chrome_url_data_manager_backend_.reset(new ChromeURLDataManagerBackend); |
395 | 395 |
396 network_delegate_.reset(new ChromeNetworkDelegate( | 396 network_delegate_.reset(new ChromeNetworkDelegate( |
397 io_thread_globals->extension_event_router_forwarder.get(), | 397 io_thread_globals->extension_event_router_forwarder.get(), |
| 398 profile_params_->extension_info_map, |
398 profile_params_->profile_id, | 399 profile_params_->profile_id, |
399 &enable_referrers_)); | 400 &enable_referrers_)); |
400 | 401 |
401 dns_cert_checker_.reset( | 402 dns_cert_checker_.reset( |
402 CreateDnsCertProvenanceChecker(io_thread_globals->dnsrr_resolver.get(), | 403 CreateDnsCertProvenanceChecker(io_thread_globals->dnsrr_resolver.get(), |
403 main_request_context_)); | 404 main_request_context_)); |
404 | 405 |
405 proxy_service_.reset( | 406 proxy_service_.reset( |
406 ProxyServiceFactory::CreateProxyService( | 407 ProxyServiceFactory::CreateProxyService( |
407 io_thread->net_log(), | 408 io_thread->net_log(), |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 context->set_appcache_service(profile_params_->appcache_service); | 499 context->set_appcache_service(profile_params_->appcache_service); |
499 context->set_blob_storage_context(profile_params_->blob_storage_context); | 500 context->set_blob_storage_context(profile_params_->blob_storage_context); |
500 context->set_file_system_context(profile_params_->file_system_context); | 501 context->set_file_system_context(profile_params_->file_system_context); |
501 context->set_extension_info_map(profile_params_->extension_info_map); | 502 context->set_extension_info_map(profile_params_->extension_info_map); |
502 } | 503 } |
503 | 504 |
504 void ProfileIOData::ShutdownOnUIThread() { | 505 void ProfileIOData::ShutdownOnUIThread() { |
505 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 506 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
506 enable_referrers_.Destroy(); | 507 enable_referrers_.Destroy(); |
507 } | 508 } |
OLD | NEW |