| 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> |
| 8 |
| 7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 8 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 9 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 10 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "build/build_config.h" |
| 11 #include "chrome/common/chrome_utility_messages.h" | 14 #include "chrome/common/chrome_utility_messages.h" |
| 12 #include "chrome/common/safe_browsing/zip_analyzer.h" | 15 #include "chrome/common/safe_browsing/zip_analyzer.h" |
| 13 #include "chrome/common/safe_browsing/zip_analyzer_results.h" | 16 #include "chrome/common/safe_browsing/zip_analyzer_results.h" |
| 14 #include "chrome/utility/chrome_content_utility_ipc_whitelist.h" | 17 #include "chrome/utility/chrome_content_utility_ipc_whitelist.h" |
| 15 #include "chrome/utility/safe_json_parser_handler.h" | 18 #include "chrome/utility/safe_json_parser_handler.h" |
| 16 #include "chrome/utility/utility_message_handler.h" | 19 #include "chrome/utility/utility_message_handler.h" |
| 17 #include "content/public/child/image_decoder_utils.h" | 20 #include "content/public/child/image_decoder_utils.h" |
| 18 #include "content/public/common/content_switches.h" | 21 #include "content/public/common/content_switches.h" |
| 19 #include "content/public/common/service_registry.h" | 22 #include "content/public/common/service_registry.h" |
| 20 #include "content/public/utility/utility_thread.h" | 23 #include "content/public/utility/utility_thread.h" |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 safe_browsing::zip_analyzer::Results results; | 401 safe_browsing::zip_analyzer::Results results; |
| 399 safe_browsing::dmg::AnalyzeDMGFile( | 402 safe_browsing::dmg::AnalyzeDMGFile( |
| 400 IPC::PlatformFileForTransitToFile(dmg_file), &results); | 403 IPC::PlatformFileForTransitToFile(dmg_file), &results); |
| 401 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( | 404 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( |
| 402 results)); | 405 results)); |
| 403 ReleaseProcessIfNeeded(); | 406 ReleaseProcessIfNeeded(); |
| 404 } | 407 } |
| 405 #endif // defined(OS_MACOSX) | 408 #endif // defined(OS_MACOSX) |
| 406 | 409 |
| 407 #endif // defined(FULL_SAFE_BROWSING) | 410 #endif // defined(FULL_SAFE_BROWSING) |
| OLD | NEW |