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/browser/safe_browsing/sandboxed_zip_analyzer.h" | 5 #include "chrome/browser/safe_browsing/sandboxed_zip_analyzer.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/platform_file.h" | |
12 #include "base/threading/sequenced_worker_pool.h" | 11 #include "base/threading/sequenced_worker_pool.h" |
13 #include "chrome/common/chrome_utility_messages.h" | 12 #include "chrome/common/chrome_utility_messages.h" |
14 #include "chrome/common/safe_browsing/zip_analyzer.h" | 13 #include "chrome/common/safe_browsing/zip_analyzer.h" |
15 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/browser/child_process_data.h" | 15 #include "content/public/browser/child_process_data.h" |
17 #include "content/public/browser/render_process_host.h" | 16 #include "content/public/browser/render_process_host.h" |
18 #include "content/public/common/content_switches.h" | 17 #include "content/public/common/content_switches.h" |
19 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
20 #include "ipc/ipc_platform_file.h" | 19 #include "ipc/ipc_platform_file.h" |
21 | 20 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 111 |
113 if (utility_process == base::kNullProcessHandle) { | 112 if (utility_process == base::kNullProcessHandle) { |
114 DLOG(ERROR) << "Child process handle is null"; | 113 DLOG(ERROR) << "Child process handle is null"; |
115 } | 114 } |
116 utility_process_host_->Send( | 115 utility_process_host_->Send( |
117 new ChromeUtilityMsg_AnalyzeZipFileForDownloadProtection( | 116 new ChromeUtilityMsg_AnalyzeZipFileForDownloadProtection( |
118 IPC::TakeFileHandleForProcess(zip_file_.Pass(), utility_process))); | 117 IPC::TakeFileHandleForProcess(zip_file_.Pass(), utility_process))); |
119 } | 118 } |
120 | 119 |
121 } // namespace safe_browsing | 120 } // namespace safe_browsing |
OLD | NEW |