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/win/src/policy_engine_params.h" | 8 #include "sandbox/win/src/policy_engine_params.h" |
9 | 9 |
10 namespace sandbox { | 10 namespace sandbox { |
(...skipping 14 matching lines...) Expand all Loading... |
25 POLPARAM(ACCESS) | 25 POLPARAM(ACCESS) |
26 POLPARAM(OPTIONS) | 26 POLPARAM(OPTIONS) |
27 POLPARAMS_END(OpenFile) | 27 POLPARAMS_END(OpenFile) |
28 | 28 |
29 // Policy parameter for name-based policies. | 29 // Policy parameter for name-based policies. |
30 POLPARAMS_BEGIN(FileName) | 30 POLPARAMS_BEGIN(FileName) |
31 POLPARAM(NAME) | 31 POLPARAM(NAME) |
32 POLPARAM(BROKER) // TRUE if called from the broker. | 32 POLPARAM(BROKER) // TRUE if called from the broker. |
33 POLPARAMS_END(FileName) | 33 POLPARAMS_END(FileName) |
34 | 34 |
35 COMPILE_ASSERT(OpenFile::NAME == static_cast<int>(FileName::NAME), | 35 static_assert(OpenFile::NAME == static_cast<int>(FileName::NAME), |
36 to_simplify_fs_policies); | 36 "to simplify fs policies"); |
37 COMPILE_ASSERT(OpenFile::BROKER == static_cast<int>(FileName::BROKER), | 37 static_assert(OpenFile::BROKER == static_cast<int>(FileName::BROKER), |
38 to_simplify_fs_policies); | 38 "to simplify fs policies"); |
39 | 39 |
40 // Policy parameter for name-based policies. | 40 // Policy parameter for name-based policies. |
41 POLPARAMS_BEGIN(NameBased) | 41 POLPARAMS_BEGIN(NameBased) |
42 POLPARAM(NAME) | 42 POLPARAM(NAME) |
43 POLPARAMS_END(NameBased) | 43 POLPARAMS_END(NameBased) |
44 | 44 |
45 // Policy parameters for open event. | 45 // Policy parameters for open event. |
46 POLPARAMS_BEGIN(OpenEventParams) | 46 POLPARAMS_BEGIN(OpenEventParams) |
47 POLPARAM(NAME) | 47 POLPARAM(NAME) |
48 POLPARAM(ACCESS) | 48 POLPARAM(ACCESS) |
49 POLPARAMS_END(OpenEventParams) | 49 POLPARAMS_END(OpenEventParams) |
50 | 50 |
51 // Policy Parameters for reg open / create. | 51 // Policy Parameters for reg open / create. |
52 POLPARAMS_BEGIN(OpenKey) | 52 POLPARAMS_BEGIN(OpenKey) |
53 POLPARAM(NAME) | 53 POLPARAM(NAME) |
54 POLPARAM(ACCESS) | 54 POLPARAM(ACCESS) |
55 POLPARAMS_END(OpenKey) | 55 POLPARAMS_END(OpenKey) |
56 | 56 |
57 // Policy parameter for name-based policies. | 57 // Policy parameter for name-based policies. |
58 POLPARAMS_BEGIN(HandleTarget) | 58 POLPARAMS_BEGIN(HandleTarget) |
59 POLPARAM(NAME) | 59 POLPARAM(NAME) |
60 POLPARAM(TARGET) | 60 POLPARAM(TARGET) |
61 POLPARAMS_END(HandleTarget) | 61 POLPARAMS_END(HandleTarget) |
62 | 62 |
63 | 63 |
64 } // namespace sandbox | 64 } // namespace sandbox |
65 | 65 |
66 #endif // SANDBOX_SRC_POLICY_PARAMS_H__ | 66 #endif // SANDBOX_SRC_POLICY_PARAMS_H__ |
OLD | NEW |