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 #ifndef SANDBOX_SRC_SANDBOX_POLICY_BASE_H_ | 5 #ifndef SANDBOX_SRC_SANDBOX_POLICY_BASE_H_ |
6 #define SANDBOX_SRC_SANDBOX_POLICY_BASE_H_ | 6 #define SANDBOX_SRC_SANDBOX_POLICY_BASE_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/string16.h" | 15 #include "base/string16.h" |
16 #include "sandbox/src/crosscall_server.h" | 16 #include "sandbox/win/src/crosscall_server.h" |
17 #include "sandbox/src/handle_closer.h" | 17 #include "sandbox/win/src/handle_closer.h" |
18 #include "sandbox/src/ipc_tags.h" | 18 #include "sandbox/win/src/ipc_tags.h" |
19 #include "sandbox/src/policy_engine_opcodes.h" | 19 #include "sandbox/win/src/policy_engine_opcodes.h" |
20 #include "sandbox/src/policy_engine_params.h" | 20 #include "sandbox/win/src/policy_engine_params.h" |
21 #include "sandbox/src/sandbox_policy.h" | 21 #include "sandbox/win/src/sandbox_policy.h" |
22 #include "sandbox/src/win_utils.h" | 22 #include "sandbox/win/src/win_utils.h" |
23 | 23 |
24 namespace sandbox { | 24 namespace sandbox { |
25 | 25 |
26 class LowLevelPolicy; | 26 class LowLevelPolicy; |
27 class TargetProcess; | 27 class TargetProcess; |
28 struct PolicyGlobal; | 28 struct PolicyGlobal; |
29 | 29 |
30 // We act as a policy dispatcher, implementing the handler for the "ping" IPC, | 30 // We act as a policy dispatcher, implementing the handler for the "ping" IPC, |
31 // so we have to provide the appropriate handler on the OnMessageReady method. | 31 // so we have to provide the appropriate handler on the OnMessageReady method. |
32 // There is a static_cast for the handler, and the compiler only performs the | 32 // There is a static_cast for the handler, and the compiler only performs the |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 static HDESK alternate_desktop_handle_; | 131 static HDESK alternate_desktop_handle_; |
132 static HWINSTA alternate_winstation_handle_; | 132 static HWINSTA alternate_winstation_handle_; |
133 | 133 |
134 DISALLOW_COPY_AND_ASSIGN(PolicyBase); | 134 DISALLOW_COPY_AND_ASSIGN(PolicyBase); |
135 }; | 135 }; |
136 | 136 |
137 } // namespace sandbox | 137 } // namespace sandbox |
138 | 138 |
139 #endif // SANDBOX_SRC_SANDBOX_POLICY_BASE_H_ | 139 #endif // SANDBOX_SRC_SANDBOX_POLICY_BASE_H_ |
OLD | NEW |