OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common/sandbox_policy.h" | 5 #include "chrome/common/sandbox_policy.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/debugger.h" | 10 #include "base/debug/debugger.h" |
11 #include "base/debug/trace_event.h" | 11 #include "base/debug/trace_event.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
15 #include "base/process_util.h" | 15 #include "base/process_util.h" |
16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
17 #include "base/string_number_conversions.h" | 17 #include "base/string_number_conversions.h" |
18 #include "base/string_util.h" | 18 #include "base/string_util.h" |
19 #include "base/win/windows_version.h" | 19 #include "base/win/windows_version.h" |
20 #include "chrome/common/child_process_info.h" | |
21 #include "chrome/common/chrome_constants.h" | 20 #include "chrome/common/chrome_constants.h" |
22 #include "chrome/common/chrome_paths.h" | 21 #include "chrome/common/chrome_paths.h" |
23 #include "chrome/common/chrome_switches.h" | 22 #include "chrome/common/chrome_switches.h" |
24 #include "chrome/common/debug_flags.h" | 23 #include "chrome/common/debug_flags.h" |
| 24 #include "content/common/child_process_info.h" |
25 #include "sandbox/src/sandbox.h" | 25 #include "sandbox/src/sandbox.h" |
26 | 26 |
27 static sandbox::BrokerServices* g_broker_services = NULL; | 27 static sandbox::BrokerServices* g_broker_services = NULL; |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
31 // The DLLs listed here are known (or under strong suspicion) of causing crashes | 31 // The DLLs listed here are known (or under strong suspicion) of causing crashes |
32 // when they are loaded in the renderer. | 32 // when they are loaded in the renderer. |
33 const wchar_t* const kTroublesomeDlls[] = { | 33 const wchar_t* const kTroublesomeDlls[] = { |
34 L"adialhk.dll", // Kaspersky Internet Security. | 34 L"adialhk.dll", // Kaspersky Internet Security. |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 | 682 |
683 // Help the process a little. It can't start the debugger by itself if | 683 // Help the process a little. It can't start the debugger by itself if |
684 // the process is in a sandbox. | 684 // the process is in a sandbox. |
685 if (child_needs_help) | 685 if (child_needs_help) |
686 base::debug::SpawnDebuggerOnProcess(target.dwProcessId); | 686 base::debug::SpawnDebuggerOnProcess(target.dwProcessId); |
687 | 687 |
688 return process; | 688 return process; |
689 } | 689 } |
690 | 690 |
691 } // namespace sandbox | 691 } // namespace sandbox |
OLD | NEW |