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

Unified Diff: sandbox/linux/bpf_dsl/policy_compiler.h

Issue 681713002: Update from chromium https://crrev.com/301315 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/linux/bpf_dsl/policy.cc ('k') | sandbox/linux/bpf_dsl/policy_compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/bpf_dsl/policy_compiler.h
diff --git a/sandbox/linux/bpf_dsl/policy_compiler.h b/sandbox/linux/bpf_dsl/policy_compiler.h
index 84712ef8454dbac317bed9ff6406501008eacad8..4aec5fd1f4937cad83f63de58952438231a1fdfb 100644
--- a/sandbox/linux/bpf_dsl/policy_compiler.h
+++ b/sandbox/linux/bpf_dsl/policy_compiler.h
@@ -21,14 +21,14 @@ namespace sandbox {
struct Instruction;
namespace bpf_dsl {
-class SandboxBPFDSLPolicy;
+class Policy;
// PolicyCompiler implements the bpf_dsl compiler, allowing users to
// transform bpf_dsl policies into BPF programs to be executed by the
// Linux kernel.
class SANDBOX_EXPORT PolicyCompiler {
public:
- PolicyCompiler(const SandboxBPFDSLPolicy* policy, TrapRegistry* registry);
+ PolicyCompiler(const Policy* policy, TrapRegistry* registry);
~PolicyCompiler();
// Compile registers any trap handlers needed by the policy and
@@ -158,7 +158,7 @@ class SANDBOX_EXPORT PolicyCompiler {
// MakeTrap is the common implementation for Trap and UnsafeTrap.
ErrorCode MakeTrap(TrapRegistry::TrapFnc fnc, const void* aux, bool safe);
- const SandboxBPFDSLPolicy* policy_;
+ const Policy* policy_;
TrapRegistry* registry_;
Conds conds_;
« no previous file with comments | « sandbox/linux/bpf_dsl/policy.cc ('k') | sandbox/linux/bpf_dsl/policy_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698