Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: sandbox/win/src/policy_low_level.h

Issue 10783004: Move Windows Sandbox, trybots version (don't commit me!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to top of tree Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sandbox/win/src/policy_engine_unittest.cc ('k') | sandbox/win/src/policy_low_level.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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__
OLDNEW
« no previous file with comments | « sandbox/win/src/policy_engine_unittest.cc ('k') | sandbox/win/src/policy_low_level.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698