diff options
author | avi <avi@chromium.org> | 2015-12-21 18:10:03 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-22 02:10:50 +0000 |
commit | 74a1875fca20f0985e43dac23fbf2329c1bbfe30 (patch) | |
tree | 7233f1a7b166a11fe74962bde7fe31f8ee8c21f9 /sandbox/win/src/policy_engine_processor.h | |
parent | b5fedf206b645760d3f88a9055c5aee9eb76415d (diff) | |
download | chromium_src-74a1875fca20f0985e43dac23fbf2329c1bbfe30.zip chromium_src-74a1875fca20f0985e43dac23fbf2329c1bbfe30.tar.gz chromium_src-74a1875fca20f0985e43dac23fbf2329c1bbfe30.tar.bz2 |
Switch to standard integer types in sandbox/.
BUG=138542
TBR=cpu@chromium.org
Committed: https://crrev.com/b5032dd2fd694a9bd7a9e96ad8fefcaf29c24c9e
Cr-Commit-Position: refs/heads/master@{#366413}
Review URL: https://codereview.chromium.org/1538283002
Cr-Commit-Position: refs/heads/master@{#366520}
Diffstat (limited to 'sandbox/win/src/policy_engine_processor.h')
-rw-r--r-- | sandbox/win/src/policy_engine_processor.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sandbox/win/src/policy_engine_processor.h b/sandbox/win/src/policy_engine_processor.h index 9e416bd..0d56896 100644 --- a/sandbox/win/src/policy_engine_processor.h +++ b/sandbox/win/src/policy_engine_processor.h @@ -5,9 +5,12 @@ #ifndef SANDBOX_SRC_POLICY_ENGINE_PROCESSOR_H__ #define SANDBOX_SRC_POLICY_ENGINE_PROCESSOR_H__ -#include "base/basictypes.h" -#include "sandbox/win/src/policy_engine_params.h" +#include <stddef.h> +#include <stdint.h> + +#include "base/macros.h" #include "sandbox/win/src/policy_engine_opcodes.h" +#include "sandbox/win/src/policy_engine_params.h" namespace sandbox { @@ -66,15 +69,15 @@ enum PolicyResult { // TODO(cpu): implement the options kStopOnErrors & kRankedEval. // // Stop evaluating as soon as an error is encountered. -const uint32 kStopOnErrors = 1; +const uint32_t kStopOnErrors = 1; // Ignore all non fatal opcode evaluation errors. -const uint32 kIgnoreErrors = 2; +const uint32_t kIgnoreErrors = 2; // Short-circuit evaluation: Only evaluate until opcode group that // evaluated to true has been found. -const uint32 kShortEval = 4; +const uint32_t kShortEval = 4; // Discussed briefly at the policy design meeting. It will evaluate // all rules and then return the 'best' rule that evaluated true. -const uint32 kRankedEval = 8; +const uint32_t kRankedEval = 8; // This class evaluates a policy-opcode stream given the memory where the // opcodes are and an input 'parameter set'. @@ -119,7 +122,7 @@ class PolicyProcessor { // Evaluates a policy-opcode stream. See the comments at the top of this // class for more info. Returns POLICY_MATCH if a rule set was found that // matches an active policy. - PolicyResult Evaluate(uint32 options, + PolicyResult Evaluate(uint32_t options, ParameterSet* parameters, size_t parameter_count); |