Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Side by Side Diff: chrome/utility/chrome_content_utility_client.cc

Issue 2697463002: Convert utility process extension Unpacker IPC to mojo (Closed)
Patch Set: Set the IPC enum traits limit to extensions::Manifest::NUM_LOCATIONS - 1. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/utility/extensions/extensions_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/utility/extensions/extensions_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698