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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 #include "extensions/browser/info_map.h" | 61 #include "extensions/browser/info_map.h" |
62 #include "extensions/common/constants.h" | 62 #include "extensions/common/constants.h" |
63 #include "net/base/keygen_handler.h" | 63 #include "net/base/keygen_handler.h" |
64 #include "net/cookies/canonical_cookie.h" | 64 #include "net/cookies/canonical_cookie.h" |
65 #include "net/http/http_transaction_factory.h" | 65 #include "net/http/http_transaction_factory.h" |
66 #include "net/http/http_util.h" | 66 #include "net/http/http_util.h" |
67 #include "net/http/transport_security_persister.h" | 67 #include "net/http/transport_security_persister.h" |
68 #include "net/proxy/proxy_config_service_fixed.h" | 68 #include "net/proxy/proxy_config_service_fixed.h" |
69 #include "net/proxy/proxy_script_fetcher_impl.h" | 69 #include "net/proxy/proxy_script_fetcher_impl.h" |
70 #include "net/proxy/proxy_service.h" | 70 #include "net/proxy/proxy_service.h" |
| 71 #include "net/ssl/channel_id_service.h" |
71 #include "net/ssl/client_cert_store.h" | 72 #include "net/ssl/client_cert_store.h" |
72 #include "net/ssl/server_bound_cert_service.h" | |
73 #include "net/url_request/data_protocol_handler.h" | 73 #include "net/url_request/data_protocol_handler.h" |
74 #include "net/url_request/file_protocol_handler.h" | 74 #include "net/url_request/file_protocol_handler.h" |
75 #include "net/url_request/ftp_protocol_handler.h" | 75 #include "net/url_request/ftp_protocol_handler.h" |
76 #include "net/url_request/url_request.h" | 76 #include "net/url_request/url_request.h" |
77 #include "net/url_request/url_request_file_job.h" | 77 #include "net/url_request/url_request_file_job.h" |
78 #include "net/url_request/url_request_intercepting_job_factory.h" | 78 #include "net/url_request/url_request_intercepting_job_factory.h" |
79 #include "net/url_request/url_request_interceptor.h" | 79 #include "net/url_request/url_request_interceptor.h" |
80 #include "net/url_request/url_request_job_factory_impl.h" | 80 #include "net/url_request/url_request_job_factory_impl.h" |
81 | 81 |
82 #if defined(ENABLE_CONFIGURATION_POLICY) | 82 #if defined(ENABLE_CONFIGURATION_POLICY) |
(...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1210 url_blacklist_manager_->ShutdownOnUIThread(); | 1210 url_blacklist_manager_->ShutdownOnUIThread(); |
1211 #endif | 1211 #endif |
1212 if (chrome_http_user_agent_settings_) | 1212 if (chrome_http_user_agent_settings_) |
1213 chrome_http_user_agent_settings_->CleanupOnUIThread(); | 1213 chrome_http_user_agent_settings_->CleanupOnUIThread(); |
1214 incognito_availibility_pref_.Destroy(); | 1214 incognito_availibility_pref_.Destroy(); |
1215 bool posted = BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); | 1215 bool posted = BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); |
1216 if (!posted) | 1216 if (!posted) |
1217 delete this; | 1217 delete this; |
1218 } | 1218 } |
1219 | 1219 |
1220 void ProfileIOData::set_server_bound_cert_service( | 1220 void ProfileIOData::set_channel_id_service( |
1221 net::ServerBoundCertService* server_bound_cert_service) const { | 1221 net::ChannelIDService* channel_id_service) const { |
1222 server_bound_cert_service_.reset(server_bound_cert_service); | 1222 channel_id_service_.reset(channel_id_service); |
1223 } | 1223 } |
1224 | 1224 |
1225 void ProfileIOData::DestroyResourceContext() { | 1225 void ProfileIOData::DestroyResourceContext() { |
1226 resource_context_.reset(); | 1226 resource_context_.reset(); |
1227 } | 1227 } |
1228 | 1228 |
1229 scoped_ptr<net::HttpCache> ProfileIOData::CreateMainHttpFactory( | 1229 scoped_ptr<net::HttpCache> ProfileIOData::CreateMainHttpFactory( |
1230 const ProfileParams* profile_params, | 1230 const ProfileParams* profile_params, |
1231 net::HttpCache::BackendFactory* main_backend) const { | 1231 net::HttpCache::BackendFactory* main_backend) const { |
1232 net::HttpNetworkSession::Params params; | 1232 net::HttpNetworkSession::Params params; |
1233 ChromeURLRequestContext* context = main_request_context(); | 1233 ChromeURLRequestContext* context = main_request_context(); |
1234 | 1234 |
1235 IOThread* const io_thread = profile_params->io_thread; | 1235 IOThread* const io_thread = profile_params->io_thread; |
1236 | 1236 |
1237 io_thread->InitializeNetworkSessionParams(¶ms); | 1237 io_thread->InitializeNetworkSessionParams(¶ms); |
1238 | 1238 |
1239 params.host_resolver = context->host_resolver(); | 1239 params.host_resolver = context->host_resolver(); |
1240 params.cert_verifier = context->cert_verifier(); | 1240 params.cert_verifier = context->cert_verifier(); |
1241 params.server_bound_cert_service = context->server_bound_cert_service(); | 1241 params.channel_id_service = context->channel_id_service(); |
1242 params.transport_security_state = context->transport_security_state(); | 1242 params.transport_security_state = context->transport_security_state(); |
1243 params.cert_transparency_verifier = context->cert_transparency_verifier(); | 1243 params.cert_transparency_verifier = context->cert_transparency_verifier(); |
1244 params.proxy_service = context->proxy_service(); | 1244 params.proxy_service = context->proxy_service(); |
1245 params.ssl_session_cache_shard = GetSSLSessionCacheShard(); | 1245 params.ssl_session_cache_shard = GetSSLSessionCacheShard(); |
1246 params.ssl_config_service = context->ssl_config_service(); | 1246 params.ssl_config_service = context->ssl_config_service(); |
1247 params.http_auth_handler_factory = context->http_auth_handler_factory(); | 1247 params.http_auth_handler_factory = context->http_auth_handler_factory(); |
1248 params.network_delegate = network_delegate(); | 1248 params.network_delegate = network_delegate(); |
1249 params.http_server_properties = context->http_server_properties(); | 1249 params.http_server_properties = context->http_server_properties(); |
1250 params.net_log = context->net_log(); | 1250 params.net_log = context->net_log(); |
1251 | 1251 |
(...skipping 17 matching lines...) Expand all Loading... |
1269 void ProfileIOData::SetCookieSettingsForTesting( | 1269 void ProfileIOData::SetCookieSettingsForTesting( |
1270 CookieSettings* cookie_settings) { | 1270 CookieSettings* cookie_settings) { |
1271 DCHECK(!cookie_settings_.get()); | 1271 DCHECK(!cookie_settings_.get()); |
1272 cookie_settings_ = cookie_settings; | 1272 cookie_settings_ = cookie_settings; |
1273 } | 1273 } |
1274 | 1274 |
1275 void ProfileIOData::set_signin_names_for_testing( | 1275 void ProfileIOData::set_signin_names_for_testing( |
1276 SigninNamesOnIOThread* signin_names) { | 1276 SigninNamesOnIOThread* signin_names) { |
1277 signin_names_.reset(signin_names); | 1277 signin_names_.reset(signin_names); |
1278 } | 1278 } |
OLD | NEW |