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" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/memory/ptr_util.h" |
12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
13 #include "base/time/time.h" | 14 #include "base/time/time.h" |
14 #include "build/build_config.h" | 15 #include "build/build_config.h" |
15 #include "chrome/common/chrome_utility_messages.h" | 16 #include "chrome/common/chrome_utility_messages.h" |
16 #include "chrome/common/file_patcher.mojom.h" | 17 #include "chrome/common/file_patcher.mojom.h" |
17 #include "chrome/common/safe_browsing/zip_analyzer.h" | 18 #include "chrome/common/safe_browsing/zip_analyzer.h" |
18 #include "chrome/common/safe_browsing/zip_analyzer_results.h" | 19 #include "chrome/common/safe_browsing/zip_analyzer_results.h" |
19 #include "chrome/utility/chrome_content_utility_ipc_whitelist.h" | 20 #include "chrome/utility/chrome_content_utility_ipc_whitelist.h" |
20 #include "chrome/utility/utility_message_handler.h" | 21 #include "chrome/utility/utility_message_handler.h" |
21 #include "components/safe_json/utility/safe_json_parser_mojo_impl.h" | 22 #include "components/safe_json/utility/safe_json_parser_mojo_impl.h" |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 safe_browsing::zip_analyzer::Results results; | 318 safe_browsing::zip_analyzer::Results results; |
318 safe_browsing::dmg::AnalyzeDMGFile( | 319 safe_browsing::dmg::AnalyzeDMGFile( |
319 IPC::PlatformFileForTransitToFile(dmg_file), &results); | 320 IPC::PlatformFileForTransitToFile(dmg_file), &results); |
320 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( | 321 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( |
321 results)); | 322 results)); |
322 ReleaseProcessIfNeeded(); | 323 ReleaseProcessIfNeeded(); |
323 } | 324 } |
324 #endif // defined(OS_MACOSX) | 325 #endif // defined(OS_MACOSX) |
325 | 326 |
326 #endif // defined(FULL_SAFE_BROWSING) | 327 #endif // defined(FULL_SAFE_BROWSING) |
OLD | NEW |