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

Unified Diff: sandbox/win/src/policy_engine_processor.h

Issue 1538283002: Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: macros Created 5 years 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/policy_engine_processor.h
diff --git a/sandbox/win/src/policy_engine_processor.h b/sandbox/win/src/policy_engine_processor.h
index 9e416bd35fcb0860e8f2b3127ee4824c406847a1..0d5689604248e1ed32803cdd1c68ac31e27a29ec 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);
« 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