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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 196 |
197 #if !defined(OS_ANDROID) | 197 #if !defined(OS_ANDROID) |
198 registry->AddService<net::interfaces::ProxyResolverFactory>( | 198 registry->AddService<net::interfaces::ProxyResolverFactory>( |
199 base::Bind(CreateProxyResolverFactory)); | 199 base::Bind(CreateProxyResolverFactory)); |
200 registry->AddService(base::Bind(CreateResourceUsageReporter)); | 200 registry->AddService(base::Bind(CreateResourceUsageReporter)); |
201 #endif | 201 #endif |
202 registry->AddService(base::Bind(&CreateImageDecoder)); | 202 registry->AddService(base::Bind(&CreateImageDecoder)); |
203 } | 203 } |
204 | 204 |
205 void ChromeContentUtilityClient::AddHandler( | 205 void ChromeContentUtilityClient::AddHandler( |
206 scoped_ptr<UtilityMessageHandler> handler) { | 206 std::unique_ptr<UtilityMessageHandler> handler) { |
207 handlers_.push_back(std::move(handler)); | 207 handlers_.push_back(std::move(handler)); |
208 } | 208 } |
209 | 209 |
210 // static | 210 // static |
211 void ChromeContentUtilityClient::PreSandboxStartup() { | 211 void ChromeContentUtilityClient::PreSandboxStartup() { |
212 #if defined(ENABLE_EXTENSIONS) | 212 #if defined(ENABLE_EXTENSIONS) |
213 extensions::ExtensionsHandler::PreSandboxStartup(); | 213 extensions::ExtensionsHandler::PreSandboxStartup(); |
214 #endif | 214 #endif |
215 } | 215 } |
216 | 216 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 safe_browsing::zip_analyzer::Results results; | 296 safe_browsing::zip_analyzer::Results results; |
297 safe_browsing::dmg::AnalyzeDMGFile( | 297 safe_browsing::dmg::AnalyzeDMGFile( |
298 IPC::PlatformFileForTransitToFile(dmg_file), &results); | 298 IPC::PlatformFileForTransitToFile(dmg_file), &results); |
299 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( | 299 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( |
300 results)); | 300 results)); |
301 ReleaseProcessIfNeeded(); | 301 ReleaseProcessIfNeeded(); |
302 } | 302 } |
303 #endif // defined(OS_MACOSX) | 303 #endif // defined(OS_MACOSX) |
304 | 304 |
305 #endif // defined(FULL_SAFE_BROWSING) | 305 #endif // defined(FULL_SAFE_BROWSING) |
OLD | NEW |