| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_LINUX_BPF_DSL_BPF_DSL_IMPL_H_ | 5 #ifndef SANDBOX_LINUX_BPF_DSL_BPF_DSL_IMPL_H_ |
| 6 #define SANDBOX_LINUX_BPF_DSL_BPF_DSL_IMPL_H_ | 6 #define SANDBOX_LINUX_BPF_DSL_BPF_DSL_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "sandbox/linux/bpf_dsl/codegen.h" | 11 #include "sandbox/linux/bpf_dsl/codegen.h" |
| 12 #include "sandbox/sandbox_export.h" | 12 #include "sandbox/sandbox_export.h" |
| 13 | 13 |
| 14 namespace sandbox { | 14 namespace sandbox { |
| 15 namespace bpf_dsl { | 15 namespace bpf_dsl { |
| 16 class ErrorCode; | |
| 17 class PolicyCompiler; | 16 class PolicyCompiler; |
| 18 | 17 |
| 19 namespace internal { | 18 namespace internal { |
| 20 | 19 |
| 21 // Internal interface implemented by BoolExpr implementations. | 20 // Internal interface implemented by BoolExpr implementations. |
| 22 class BoolExprImpl { | 21 class BoolExprImpl { |
| 23 public: | 22 public: |
| 24 // Compile uses |pc| to emit a CodeGen::Node that conditionally continues | 23 // Compile uses |pc| to emit a CodeGen::Node that conditionally continues |
| 25 // to either |then_node| or |false_node|, depending on whether the represented | 24 // to either |then_node| or |false_node|, depending on whether the represented |
| 26 // boolean expression is true or false. | 25 // boolean expression is true or false. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 58 |
| 60 private: | 59 private: |
| 61 DISALLOW_COPY_AND_ASSIGN(ResultExprImpl); | 60 DISALLOW_COPY_AND_ASSIGN(ResultExprImpl); |
| 62 }; | 61 }; |
| 63 | 62 |
| 64 } // namespace internal | 63 } // namespace internal |
| 65 } // namespace bpf_dsl | 64 } // namespace bpf_dsl |
| 66 } // namespace sandbox | 65 } // namespace sandbox |
| 67 | 66 |
| 68 #endif // SANDBOX_LINUX_BPF_DSL_BPF_DSL_IMPL_H_ | 67 #endif // SANDBOX_LINUX_BPF_DSL_BPF_DSL_IMPL_H_ |
| OLD | NEW |