Chromium Code Reviews| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 122 #endif | 122 #endif |
| 123 | 123 |
| 124 #if defined(OS_ANDROID) | 124 #if defined(OS_ANDROID) |
| 125 #include "content/public/browser/android/content_protocol_handler.h" | 125 #include "content/public/browser/android/content_protocol_handler.h" |
| 126 #endif // defined(OS_ANDROID) | 126 #endif // defined(OS_ANDROID) |
| 127 | 127 |
| 128 #if defined(OS_CHROMEOS) | 128 #if defined(OS_CHROMEOS) |
| 129 #include "chrome/browser/chromeos/certificate_provider/certificate_provider.h" | 129 #include "chrome/browser/chromeos/certificate_provider/certificate_provider.h" |
| 130 #include "chrome/browser/chromeos/certificate_provider/certificate_provider_serv ice.h" | 130 #include "chrome/browser/chromeos/certificate_provider/certificate_provider_serv ice.h" |
| 131 #include "chrome/browser/chromeos/certificate_provider/certificate_provider_serv ice_factory.h" | 131 #include "chrome/browser/chromeos/certificate_provider/certificate_provider_serv ice_factory.h" |
| 132 #include "chrome/browser/chromeos/file_request_interceptor.h" | |
| 132 #include "chrome/browser/chromeos/fileapi/external_file_protocol_handler.h" | 133 #include "chrome/browser/chromeos/fileapi/external_file_protocol_handler.h" |
| 133 #include "chrome/browser/chromeos/login/startup_utils.h" | 134 #include "chrome/browser/chromeos/login/startup_utils.h" |
| 134 #include "chrome/browser/chromeos/net/cert_verify_proc_chromeos.h" | 135 #include "chrome/browser/chromeos/net/cert_verify_proc_chromeos.h" |
| 135 #include "chrome/browser/chromeos/net/client_cert_filter_chromeos.h" | 136 #include "chrome/browser/chromeos/net/client_cert_filter_chromeos.h" |
| 136 #include "chrome/browser/chromeos/net/client_cert_store_chromeos.h" | 137 #include "chrome/browser/chromeos/net/client_cert_store_chromeos.h" |
| 137 #include "chrome/browser/chromeos/policy/policy_cert_service.h" | 138 #include "chrome/browser/chromeos/policy/policy_cert_service.h" |
| 138 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h" | 139 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h" |
| 139 #include "chrome/browser/chromeos/policy/policy_cert_verifier.h" | 140 #include "chrome/browser/chromeos/policy/policy_cert_verifier.h" |
| 140 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 141 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 141 #include "chrome/browser/chromeos/settings/cros_settings.h" | 142 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| (...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1165 url::kDataScheme, base::MakeUnique<net::DataProtocolHandler>()); | 1166 url::kDataScheme, base::MakeUnique<net::DataProtocolHandler>()); |
| 1166 DCHECK(set_protocol); | 1167 DCHECK(set_protocol); |
| 1167 #if defined(OS_CHROMEOS) | 1168 #if defined(OS_CHROMEOS) |
| 1168 if (profile_params_) { | 1169 if (profile_params_) { |
| 1169 set_protocol = job_factory->SetProtocolHandler( | 1170 set_protocol = job_factory->SetProtocolHandler( |
| 1170 content::kExternalFileScheme, | 1171 content::kExternalFileScheme, |
| 1171 base::MakeUnique<chromeos::ExternalFileProtocolHandler>( | 1172 base::MakeUnique<chromeos::ExternalFileProtocolHandler>( |
| 1172 profile_params_->profile)); | 1173 profile_params_->profile)); |
| 1173 DCHECK(set_protocol); | 1174 DCHECK(set_protocol); |
| 1174 } | 1175 } |
| 1176 request_interceptors.push_back( | |
| 1177 base::MakeUnique<chromeos::FileRequestInterceptor>()); | |
|
eroman
2017/04/04 22:19:45
You will want mmenke to review this change. In fac
| |
| 1175 #endif // defined(OS_CHROMEOS) | 1178 #endif // defined(OS_CHROMEOS) |
| 1176 #if defined(OS_ANDROID) | 1179 #if defined(OS_ANDROID) |
| 1177 set_protocol = job_factory->SetProtocolHandler( | 1180 set_protocol = job_factory->SetProtocolHandler( |
| 1178 url::kContentScheme, | 1181 url::kContentScheme, |
| 1179 content::ContentProtocolHandler::Create( | 1182 content::ContentProtocolHandler::Create( |
| 1180 content::BrowserThread::GetBlockingPool() | 1183 content::BrowserThread::GetBlockingPool() |
| 1181 ->GetTaskRunnerWithShutdownBehavior( | 1184 ->GetTaskRunnerWithShutdownBehavior( |
| 1182 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN))); | 1185 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN))); |
| 1183 #endif | 1186 #endif |
| 1184 | 1187 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1310 void ProfileIOData::SetCookieSettingsForTesting( | 1313 void ProfileIOData::SetCookieSettingsForTesting( |
| 1311 content_settings::CookieSettings* cookie_settings) { | 1314 content_settings::CookieSettings* cookie_settings) { |
| 1312 DCHECK(!cookie_settings_.get()); | 1315 DCHECK(!cookie_settings_.get()); |
| 1313 cookie_settings_ = cookie_settings; | 1316 cookie_settings_ = cookie_settings; |
| 1314 } | 1317 } |
| 1315 | 1318 |
| 1316 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( | 1319 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( |
| 1317 const GURL& url) const { | 1320 const GURL& url) const { |
| 1318 return url_blacklist_manager_->GetURLBlacklistState(url); | 1321 return url_blacklist_manager_->GetURLBlacklistState(url); |
| 1319 } | 1322 } |
| OLD | NEW |