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

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

Issue 2697463002: Convert utility process extension Unpacker IPC to mojo (Closed)
Patch Set: Take #4, declare the IPC enum traits in the message file, try build fix. 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
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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 } 232 }
233 233
234 return false; 234 return false;
235 } 235 }
236 236
237 void ChromeContentUtilityClient::ExposeInterfacesToBrowser( 237 void ChromeContentUtilityClient::ExposeInterfacesToBrowser(
238 service_manager::InterfaceRegistry* registry) { 238 service_manager::InterfaceRegistry* registry) {
239 #if BUILDFLAG(ENABLE_EXTENSIONS) 239 #if BUILDFLAG(ENABLE_EXTENSIONS)
240 extensions::ExtensionsHandler::ExposeInterfacesToBrowser( 240 extensions::ExtensionsHandler::ExposeInterfacesToBrowser(
241 registry, utility_process_running_elevated_); 241 registry, utility_process_running_elevated_);
242 extensions::UtilityHandler::ExposeInterfacesToBrowser(
243 registry, utility_process_running_elevated_);
242 #endif 244 #endif
243 // If our process runs with elevated privileges, only add elevated Mojo 245 // If our process runs with elevated privileges, only add elevated Mojo
244 // services to the interface registry. 246 // services to the interface registry.
245 if (utility_process_running_elevated_) 247 if (utility_process_running_elevated_)
246 return; 248 return;
247 249
248 registry->AddInterface(base::Bind(&FilePatcherImpl::Create)); 250 registry->AddInterface(base::Bind(&FilePatcherImpl::Create));
249 #if !defined(OS_ANDROID) 251 #if !defined(OS_ANDROID)
250 registry->AddInterface<net::interfaces::ProxyResolverFactory>( 252 registry->AddInterface<net::interfaces::ProxyResolverFactory>(
251 base::Bind(CreateProxyResolverFactory)); 253 base::Bind(CreateProxyResolverFactory));
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 safe_browsing::dmg::AnalyzeDMGFile( 299 safe_browsing::dmg::AnalyzeDMGFile(
298 IPC::PlatformFileForTransitToFile(dmg_file), &results); 300 IPC::PlatformFileForTransitToFile(dmg_file), &results);
299 content::UtilityThread::Get()->Send( 301 content::UtilityThread::Get()->Send(
300 new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( 302 new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished(
301 results)); 303 results));
302 content::UtilityThread::Get()->ReleaseProcessIfNeeded(); 304 content::UtilityThread::Get()->ReleaseProcessIfNeeded();
303 } 305 }
304 #endif // defined(OS_MACOSX) 306 #endif // defined(OS_MACOSX)
305 307
306 #endif // defined(FULL_SAFE_BROWSING) 308 #endif // defined(FULL_SAFE_BROWSING)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698