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

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

Issue 10689170: Move the Windows sandbox to sandbox/win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on top of tree (properly this time) 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_params.h ('k') | sandbox/win/src/policy_engine_processor.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) 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
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__
OLDNEW
« no previous file with comments | « sandbox/win/src/policy_engine_params.h ('k') | sandbox/win/src/policy_engine_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698