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 "content/common/sandbox_policy.h" | 5 #include "content/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_util.h" | 17 #include "base/string_util.h" |
18 #include "base/win/windows_version.h" | 18 #include "base/win/windows_version.h" |
19 #include "content/common/content_client.h" | 19 #include "content/common/content_client.h" |
20 #include "content/common/content_switches.h" | |
21 #include "content/common/child_process_info.h" | 20 #include "content/common/child_process_info.h" |
22 #include "content/common/debug_flags.h" | 21 #include "content/common/debug_flags.h" |
| 22 #include "content/public/common/content_switches.h" |
23 #include "sandbox/src/sandbox.h" | 23 #include "sandbox/src/sandbox.h" |
24 #include "ui/gfx/gl/gl_switches.h" | 24 #include "ui/gfx/gl/gl_switches.h" |
25 | 25 |
26 static sandbox::BrokerServices* g_broker_services = NULL; | 26 static sandbox::BrokerServices* g_broker_services = NULL; |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 // The DLLs listed here are known (or under strong suspicion) of causing crashes | 30 // The DLLs listed here are known (or under strong suspicion) of causing crashes |
31 // when they are loaded in the renderer. Note: at runtime we generate short | 31 // when they are loaded in the renderer. Note: at runtime we generate short |
32 // versions of the dll name only if the dll has an extension. | 32 // versions of the dll name only if the dll has an extension. |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 | 562 |
563 // Help the process a little. It can't start the debugger by itself if | 563 // Help the process a little. It can't start the debugger by itself if |
564 // the process is in a sandbox. | 564 // the process is in a sandbox. |
565 if (child_needs_help) | 565 if (child_needs_help) |
566 base::debug::SpawnDebuggerOnProcess(target.dwProcessId); | 566 base::debug::SpawnDebuggerOnProcess(target.dwProcessId); |
567 | 567 |
568 return process; | 568 return process; |
569 } | 569 } |
570 | 570 |
571 } // namespace sandbox | 571 } // namespace sandbox |
OLD | NEW |