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 "content/common/sandbox_win.h" | 5 #include "content/common/sandbox_win.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base_switches.h" | 9 #include "base/base_switches.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/debug/profiler.h" | 11 #include "base/debug/profiler.h" |
12 #include "base/debug/trace_event.h" | |
13 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
14 #include "base/hash.h" | 13 #include "base/hash.h" |
15 #include "base/path_service.h" | 14 #include "base/path_service.h" |
16 #include "base/process/launch.h" | 15 #include "base/process/launch.h" |
17 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
18 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
| 18 #include "base/trace_event/trace_event.h" |
19 #include "base/win/iat_patch_function.h" | 19 #include "base/win/iat_patch_function.h" |
20 #include "base/win/scoped_handle.h" | 20 #include "base/win/scoped_handle.h" |
21 #include "base/win/scoped_process_information.h" | 21 #include "base/win/scoped_process_information.h" |
22 #include "base/win/windows_version.h" | 22 #include "base/win/windows_version.h" |
23 #include "content/public/common/content_client.h" | 23 #include "content/public/common/content_client.h" |
24 #include "content/public/common/content_switches.h" | 24 #include "content/public/common/content_switches.h" |
25 #include "content/public/common/sandbox_init.h" | 25 #include "content/public/common/sandbox_init.h" |
26 #include "content/public/common/sandboxed_process_launcher_delegate.h" | 26 #include "content/public/common/sandboxed_process_launcher_delegate.h" |
27 #include "sandbox/win/src/process_mitigations.h" | 27 #include "sandbox/win/src/process_mitigations.h" |
28 #include "sandbox/win/src/sandbox.h" | 28 #include "sandbox/win/src/sandbox.h" |
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 } | 762 } |
763 | 763 |
764 return false; | 764 return false; |
765 } | 765 } |
766 | 766 |
767 bool BrokerAddTargetPeer(HANDLE peer_process) { | 767 bool BrokerAddTargetPeer(HANDLE peer_process) { |
768 return g_broker_services->AddTargetPeer(peer_process) == sandbox::SBOX_ALL_OK; | 768 return g_broker_services->AddTargetPeer(peer_process) == sandbox::SBOX_ALL_OK; |
769 } | 769 } |
770 | 770 |
771 } // namespace content | 771 } // namespace content |
OLD | NEW |