OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_POLICY_PARAMS_H__ | 5 #ifndef SANDBOX_SRC_POLICY_PARAMS_H__ |
6 #define SANDBOX_SRC_POLICY_PARAMS_H__ | 6 #define SANDBOX_SRC_POLICY_PARAMS_H__ |
7 | 7 |
8 #include "sandbox/src/policy_engine_params.h" | 8 #include "sandbox/win/src/policy_engine_params.h" |
9 | 9 |
10 namespace sandbox { | 10 namespace sandbox { |
11 | 11 |
12 class ParameterSet; | 12 class ParameterSet; |
13 | 13 |
14 // Warning: The following macros store the address to the actual variables, in | 14 // Warning: The following macros store the address to the actual variables, in |
15 // other words, the values are not copied. | 15 // other words, the values are not copied. |
16 #define POLPARAMS_BEGIN(type) class type { public: enum Args { | 16 #define POLPARAMS_BEGIN(type) class type { public: enum Args { |
17 #define POLPARAM(arg) arg, | 17 #define POLPARAM(arg) arg, |
18 #define POLPARAMS_END(type) PolParamLast }; }; \ | 18 #define POLPARAMS_END(type) PolParamLast }; }; \ |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // Policy parameter for name-based policies. | 55 // Policy parameter for name-based policies. |
56 POLPARAMS_BEGIN(HandleTarget) | 56 POLPARAMS_BEGIN(HandleTarget) |
57 POLPARAM(NAME) | 57 POLPARAM(NAME) |
58 POLPARAM(TARGET) | 58 POLPARAM(TARGET) |
59 POLPARAMS_END(HandleTarget) | 59 POLPARAMS_END(HandleTarget) |
60 | 60 |
61 | 61 |
62 } // namespace sandbox | 62 } // namespace sandbox |
63 | 63 |
64 #endif // SANDBOX_SRC_POLICY_PARAMS_H__ | 64 #endif // SANDBOX_SRC_POLICY_PARAMS_H__ |
OLD | NEW |