| 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_OPCODES_H__ | 5 #ifndef SANDBOX_SRC_POLICY_ENGINE_OPCODES_H__ |
| 6 #define SANDBOX_SRC_POLICY_ENGINE_OPCODES_H__ | 6 #define SANDBOX_SRC_POLICY_ENGINE_OPCODES_H__ |
| 7 | 7 |
| 8 #include "sandbox/src/policy_engine_params.h" | 8 #include "sandbox/win/src/policy_engine_params.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 | 10 |
| 11 // The low-level policy is implemented using the concept of policy 'opcodes'. | 11 // The low-level policy is implemented using the concept of policy 'opcodes'. |
| 12 // An opcode is a structure that contains enough information to perform one | 12 // An opcode is a structure that contains enough information to perform one |
| 13 // comparison against one single input parameter. For example, an opcode can | 13 // comparison against one single input parameter. For example, an opcode can |
| 14 // encode just one of the following comparison: | 14 // encode just one of the following comparison: |
| 15 // | 15 // |
| 16 // - Is input parameter 3 not equal to NULL? | 16 // - Is input parameter 3 not equal to NULL? |
| 17 // - Does input parameter 2 start with L"c:\\"? | 17 // - Does input parameter 2 start with L"c:\\"? |
| 18 // - Is input parameter 5, bit 3 is equal 1? | 18 // - Is input parameter 5, bit 3 is equal 1? |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 // used to make the opcodes. This pointer decrements as opcode strings are | 371 // used to make the opcodes. This pointer decrements as opcode strings are |
| 372 // allocated. | 372 // allocated. |
| 373 char* memory_bottom_; | 373 char* memory_bottom_; |
| 374 | 374 |
| 375 DISALLOW_COPY_AND_ASSIGN(OpcodeFactory); | 375 DISALLOW_COPY_AND_ASSIGN(OpcodeFactory); |
| 376 }; | 376 }; |
| 377 | 377 |
| 378 } // namespace sandbox | 378 } // namespace sandbox |
| 379 | 379 |
| 380 #endif // SANDBOX_SRC_POLICY_ENGINE_OPCODES_H__ | 380 #endif // SANDBOX_SRC_POLICY_ENGINE_OPCODES_H__ |
| OLD | NEW |