| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 callback.Run(std::move(data)); | 94 callback.Run(std::move(data)); |
| 95 } | 95 } |
| 96 | 96 |
| 97 mojo::StrongBinding<mojom::ResourceUsageReporter> binding_; | 97 mojo::StrongBinding<mojom::ResourceUsageReporter> binding_; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 void CreateResourceUsageReporter( | 100 void CreateResourceUsageReporter( |
| 101 mojo::InterfaceRequest<mojom::ResourceUsageReporter> request) { | 101 mojo::InterfaceRequest<mojom::ResourceUsageReporter> request) { |
| 102 new ResourceUsageReporterImpl(std::move(request)); | 102 new ResourceUsageReporterImpl(std::move(request)); |
| 103 } | 103 } |
| 104 #endif // OS_ANDROID | 104 #endif // !defined(OS_ANDROID) |
| 105 | 105 |
| 106 void CreateImageDecoder(mojo::InterfaceRequest<mojom::ImageDecoder> request) { | 106 void CreateImageDecoder(mojo::InterfaceRequest<mojom::ImageDecoder> request) { |
| 107 content::UtilityThread::Get()->EnsureBlinkInitialized(); | 107 content::UtilityThread::Get()->EnsureBlinkInitialized(); |
| 108 new ImageDecoderImpl(std::move(request)); | 108 new ImageDecoderImpl(std::move(request)); |
| 109 } | 109 } |
| 110 | 110 |
| 111 } // namespace | 111 } // namespace |
| 112 | 112 |
| 113 ChromeContentUtilityClient::ChromeContentUtilityClient() | 113 ChromeContentUtilityClient::ChromeContentUtilityClient() |
| 114 : filter_messages_(false) { | 114 : filter_messages_(false) { |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 safe_browsing::zip_analyzer::Results results; | 305 safe_browsing::zip_analyzer::Results results; |
| 306 safe_browsing::dmg::AnalyzeDMGFile( | 306 safe_browsing::dmg::AnalyzeDMGFile( |
| 307 IPC::PlatformFileForTransitToFile(dmg_file), &results); | 307 IPC::PlatformFileForTransitToFile(dmg_file), &results); |
| 308 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( | 308 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( |
| 309 results)); | 309 results)); |
| 310 ReleaseProcessIfNeeded(); | 310 ReleaseProcessIfNeeded(); |
| 311 } | 311 } |
| 312 #endif // defined(OS_MACOSX) | 312 #endif // defined(OS_MACOSX) |
| 313 | 313 |
| 314 #endif // defined(FULL_SAFE_BROWSING) | 314 #endif // defined(FULL_SAFE_BROWSING) |
| OLD | NEW |