OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_ENGINE_PROCESSOR_H__ | 5 #ifndef SANDBOX_SRC_POLICY_ENGINE_PROCESSOR_H__ |
6 #define SANDBOX_SRC_POLICY_ENGINE_PROCESSOR_H__ | 6 #define SANDBOX_SRC_POLICY_ENGINE_PROCESSOR_H__ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "sandbox/src/policy_engine_params.h" | 9 #include "sandbox/win/src/policy_engine_params.h" |
10 #include "sandbox/src/policy_engine_opcodes.h" | 10 #include "sandbox/win/src/policy_engine_opcodes.h" |
11 | 11 |
12 namespace sandbox { | 12 namespace sandbox { |
13 | 13 |
14 // This header contains the core policy evaluator. In its simplest form | 14 // This header contains the core policy evaluator. In its simplest form |
15 // it evaluates a stream of opcodes assuming that they are laid out in | 15 // it evaluates a stream of opcodes assuming that they are laid out in |
16 // memory as opcode groups. | 16 // memory as opcode groups. |
17 // | 17 // |
18 // An opcode group has N comparison opcodes plus 1 action opcode. For | 18 // An opcode group has N comparison opcodes plus 1 action opcode. For |
19 // example here we have 3 opcode groups (A, B,C): | 19 // example here we have 3 opcode groups (A, B,C): |
20 // | 20 // |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 // Sets the currently matching action result. | 136 // Sets the currently matching action result. |
137 void SetInternalState(size_t index, EvalResult result); | 137 void SetInternalState(size_t index, EvalResult result); |
138 | 138 |
139 PolicyBuffer* policy_; | 139 PolicyBuffer* policy_; |
140 DISALLOW_COPY_AND_ASSIGN(PolicyProcessor); | 140 DISALLOW_COPY_AND_ASSIGN(PolicyProcessor); |
141 }; | 141 }; |
142 | 142 |
143 } // namespace sandbox | 143 } // namespace sandbox |
144 | 144 |
145 #endif // SANDBOX_SRC_POLICY_ENGINE_PROCESSOR_H__ | 145 #endif // SANDBOX_SRC_POLICY_ENGINE_PROCESSOR_H__ |
OLD | NEW |