summaryrefslogtreecommitdiffstats
path: root/sandbox/win/src/policy_engine_processor.h
diff options
context:
space:
mode:
authoravi <avi@chromium.org>2015-12-21 09:48:04 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-21 17:49:12 +0000
commitb5032dd2fd694a9bd7a9e96ad8fefcaf29c24c9e (patch)
treecb90d9d24494cfbc68bbf83b328fc23d3d2ba149 /sandbox/win/src/policy_engine_processor.h
parent0739c642c9acce9e05ac8bb936a55fc6230a96f0 (diff)
downloadchromium_src-b5032dd2fd694a9bd7a9e96ad8fefcaf29c24c9e.zip
chromium_src-b5032dd2fd694a9bd7a9e96ad8fefcaf29c24c9e.tar.gz
chromium_src-b5032dd2fd694a9bd7a9e96ad8fefcaf29c24c9e.tar.bz2
Switch to standard integer types in sandbox/.
BUG=138542 TBR=cpu@chromium.org Review URL: https://codereview.chromium.org/1538283002 Cr-Commit-Position: refs/heads/master@{#366413}
Diffstat (limited to 'sandbox/win/src/policy_engine_processor.h')
-rw-r--r--sandbox/win/src/policy_engine_processor.h17
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);