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 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 } | 256 } |
257 | 257 |
258 return false; | 258 return false; |
259 } | 259 } |
260 | 260 |
261 void ChromeContentUtilityClient::ExposeInterfacesToBrowser( | 261 void ChromeContentUtilityClient::ExposeInterfacesToBrowser( |
262 service_manager::InterfaceRegistry* registry) { | 262 service_manager::InterfaceRegistry* registry) { |
263 #if BUILDFLAG(ENABLE_EXTENSIONS) | 263 #if BUILDFLAG(ENABLE_EXTENSIONS) |
264 extensions::ExtensionsHandler::ExposeInterfacesToBrowser( | 264 extensions::ExtensionsHandler::ExposeInterfacesToBrowser( |
265 registry, utility_process_running_elevated_); | 265 registry, utility_process_running_elevated_); |
| 266 extensions::UtilityHandler::ExposeInterfacesToBrowser( |
| 267 registry, utility_process_running_elevated_); |
266 #endif | 268 #endif |
267 // If our process runs with elevated privileges, only add elevated Mojo | 269 // If our process runs with elevated privileges, only add elevated Mojo |
268 // services to the interface registry. | 270 // services to the interface registry. |
269 if (utility_process_running_elevated_) | 271 if (utility_process_running_elevated_) |
270 return; | 272 return; |
271 | 273 |
272 registry->AddInterface(base::Bind(&FilePatcherImpl::Create)); | 274 registry->AddInterface(base::Bind(&FilePatcherImpl::Create)); |
273 #if !defined(OS_ANDROID) | 275 #if !defined(OS_ANDROID) |
274 registry->AddInterface<net::interfaces::ProxyResolverFactory>( | 276 registry->AddInterface<net::interfaces::ProxyResolverFactory>( |
275 base::Bind(CreateProxyResolverFactory)); | 277 base::Bind(CreateProxyResolverFactory)); |
(...skipping 19 matching lines...) Expand all Loading... |
295 services->insert( | 297 services->insert( |
296 std::make_pair(image_decoder::mojom::kServiceName, image_decoder_info)); | 298 std::make_pair(image_decoder::mojom::kServiceName, image_decoder_info)); |
297 } | 299 } |
298 | 300 |
299 // static | 301 // static |
300 void ChromeContentUtilityClient::PreSandboxStartup() { | 302 void ChromeContentUtilityClient::PreSandboxStartup() { |
301 #if BUILDFLAG(ENABLE_EXTENSIONS) | 303 #if BUILDFLAG(ENABLE_EXTENSIONS) |
302 extensions::ExtensionsHandler::PreSandboxStartup(); | 304 extensions::ExtensionsHandler::PreSandboxStartup(); |
303 #endif | 305 #endif |
304 } | 306 } |
OLD | NEW |