| 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_LOW_LEVEL_H__ | 5 #ifndef SANDBOX_SRC_POLICY_LOW_LEVEL_H__ |
| 6 #define SANDBOX_SRC_POLICY_LOW_LEVEL_H__ | 6 #define SANDBOX_SRC_POLICY_LOW_LEVEL_H__ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "sandbox/src/ipc_tags.h" | 11 #include "sandbox/win/src/ipc_tags.h" |
| 12 #include "sandbox/src/policy_engine_params.h" | 12 #include "sandbox/win/src/policy_engine_params.h" |
| 13 #include "sandbox/src/policy_engine_opcodes.h" | 13 #include "sandbox/win/src/policy_engine_opcodes.h" |
| 14 | 14 |
| 15 // Low level policy classes. | 15 // Low level policy classes. |
| 16 // Built on top of the PolicyOpcode and OpcodeFatory, the low level policy | 16 // Built on top of the PolicyOpcode and OpcodeFatory, the low level policy |
| 17 // provides a way to define rules on strings and numbers but it is unaware | 17 // provides a way to define rules on strings and numbers but it is unaware |
| 18 // of Windows specific details or how the Interceptions must be set up. | 18 // of Windows specific details or how the Interceptions must be set up. |
| 19 // To use these classes you construct one or more rules and add them to the | 19 // To use these classes you construct one or more rules and add them to the |
| 20 // LowLevelPolicy object like this: | 20 // LowLevelPolicy object like this: |
| 21 // | 21 // |
| 22 // PolicyRule rule1(ASK_BROKER); | 22 // PolicyRule rule1(ASK_BROKER); |
| 23 // rule1.AddStringMatch(IF, 0, L"\\\\/?/?\\c:\\*Microsoft*\\*.exe", true); | 23 // rule1.AddStringMatch(IF, 0, L"\\\\/?/?\\c:\\*Microsoft*\\*.exe", true); |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 char* data_start, size_t* data_size) const; | 173 char* data_start, size_t* data_size) const; |
| 174 PolicyBuffer* buffer_; | 174 PolicyBuffer* buffer_; |
| 175 OpcodeFactory* opcode_factory_; | 175 OpcodeFactory* opcode_factory_; |
| 176 EvalResult action_; | 176 EvalResult action_; |
| 177 bool done_; | 177 bool done_; |
| 178 }; | 178 }; |
| 179 | 179 |
| 180 } // namespace sandbox | 180 } // namespace sandbox |
| 181 | 181 |
| 182 #endif // SANDBOX_SRC_POLICY_LOW_LEVEL_H__ | 182 #endif // SANDBOX_SRC_POLICY_LOW_LEVEL_H__ |
| OLD | NEW |