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

Side by Side Diff: sandbox/win/src/policy_engine_opcodes.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_broker.cc ('k') | sandbox/win/src/policy_engine_opcodes.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_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
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__
OLDNEW
« no previous file with comments | « sandbox/win/src/policy_broker.cc ('k') | sandbox/win/src/policy_engine_opcodes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698