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