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/utility/chrome_content_utility_client.h" | 5 #include "chrome/utility/chrome_content_utility_client.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 } | 204 } |
205 | 205 |
206 return false; | 206 return false; |
207 } | 207 } |
208 | 208 |
209 void ChromeContentUtilityClient::ExposeInterfacesToBrowser( | 209 void ChromeContentUtilityClient::ExposeInterfacesToBrowser( |
210 service_manager::InterfaceRegistry* registry) { | 210 service_manager::InterfaceRegistry* registry) { |
211 #if BUILDFLAG(ENABLE_EXTENSIONS) | 211 #if BUILDFLAG(ENABLE_EXTENSIONS) |
212 extensions::ExtensionsHandler::ExposeInterfacesToBrowser( | 212 extensions::ExtensionsHandler::ExposeInterfacesToBrowser( |
213 registry, utility_process_running_elevated_); | 213 registry, utility_process_running_elevated_); |
| 214 extensions::UtilityHandler::ExposeInterfacesToBrowser( |
| 215 registry, utility_process_running_elevated_); |
214 #endif | 216 #endif |
215 // If our process runs with elevated privileges, only add elevated Mojo | 217 // If our process runs with elevated privileges, only add elevated Mojo |
216 // services to the interface registry. | 218 // services to the interface registry. |
217 if (utility_process_running_elevated_) | 219 if (utility_process_running_elevated_) |
218 return; | 220 return; |
219 | 221 |
220 registry->AddInterface(base::Bind(&FilePatcherImpl::Create)); | 222 registry->AddInterface(base::Bind(&FilePatcherImpl::Create)); |
221 #if !defined(OS_ANDROID) | 223 #if !defined(OS_ANDROID) |
222 registry->AddInterface<net::interfaces::ProxyResolverFactory>( | 224 registry->AddInterface<net::interfaces::ProxyResolverFactory>( |
223 base::Bind(CreateProxyResolverFactory)); | 225 base::Bind(CreateProxyResolverFactory)); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 safe_browsing::zip_analyzer::Results results; | 298 safe_browsing::zip_analyzer::Results results; |
297 safe_browsing::dmg::AnalyzeDMGFile( | 299 safe_browsing::dmg::AnalyzeDMGFile( |
298 IPC::PlatformFileForTransitToFile(dmg_file), &results); | 300 IPC::PlatformFileForTransitToFile(dmg_file), &results); |
299 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( | 301 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( |
300 results)); | 302 results)); |
301 ReleaseProcessIfNeeded(); | 303 ReleaseProcessIfNeeded(); |
302 } | 304 } |
303 #endif // defined(OS_MACOSX) | 305 #endif // defined(OS_MACOSX) |
304 | 306 |
305 #endif // defined(FULL_SAFE_BROWSING) | 307 #endif // defined(FULL_SAFE_BROWSING) |
OLD | NEW |