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_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/bind.h" | 10 #include "base/bind.h" |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 params->io_thread = g_browser_process->io_thread(); | 192 params->io_thread = g_browser_process->io_thread(); |
193 | 193 |
194 params->cookie_settings = CookieSettings::Factory::GetForProfile(profile); | 194 params->cookie_settings = CookieSettings::Factory::GetForProfile(profile); |
195 params->ssl_config_service = profile->GetSSLConfigService(); | 195 params->ssl_config_service = profile->GetSSLConfigService(); |
196 base::Callback<Profile*(void)> profile_getter = | 196 base::Callback<Profile*(void)> profile_getter = |
197 base::Bind(&GetProfileOnUI, g_browser_process->profile_manager(), | 197 base::Bind(&GetProfileOnUI, g_browser_process->profile_manager(), |
198 profile); | 198 profile); |
199 params->cookie_monster_delegate = | 199 params->cookie_monster_delegate = |
200 new ChromeCookieMonsterDelegate(profile_getter); | 200 new ChromeCookieMonsterDelegate(profile_getter); |
201 params->extension_info_map = | 201 params->extension_info_map = |
202 ExtensionSystem::Get(profile)->info_map(); | 202 extensions::ExtensionSystem::Get(profile)->info_map(); |
203 | 203 |
204 if (predictors::ResourcePrefetchPredictor* predictor = | 204 if (predictors::ResourcePrefetchPredictor* predictor = |
205 predictors::ResourcePrefetchPredictorFactory::GetForProfile( | 205 predictors::ResourcePrefetchPredictorFactory::GetForProfile( |
206 profile)) { | 206 profile)) { |
207 resource_prefetch_predictor_observer_.reset( | 207 resource_prefetch_predictor_observer_.reset( |
208 new chrome_browser_net::ResourcePrefetchPredictorObserver(predictor)); | 208 new chrome_browser_net::ResourcePrefetchPredictorObserver(predictor)); |
209 } | 209 } |
210 | 210 |
211 #if defined(ENABLE_NOTIFICATIONS) | 211 #if defined(ENABLE_NOTIFICATIONS) |
212 params->notification_service = | 212 params->notification_service = |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 } | 600 } |
601 | 601 |
602 void ProfileIOData::set_server_bound_cert_service( | 602 void ProfileIOData::set_server_bound_cert_service( |
603 net::ServerBoundCertService* server_bound_cert_service) const { | 603 net::ServerBoundCertService* server_bound_cert_service) const { |
604 server_bound_cert_service_.reset(server_bound_cert_service); | 604 server_bound_cert_service_.reset(server_bound_cert_service); |
605 } | 605 } |
606 | 606 |
607 void ProfileIOData::DestroyResourceContext() { | 607 void ProfileIOData::DestroyResourceContext() { |
608 resource_context_.reset(); | 608 resource_context_.reset(); |
609 } | 609 } |
OLD | NEW |