| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "sandbox/sandbox_export.h" | 10 #include "sandbox/sandbox_export.h" |
| 11 | 11 |
| 12 namespace sandbox { | 12 namespace sandbox { |
| 13 namespace bpf_dsl { |
| 13 class ErrorCode; | 14 class ErrorCode; |
| 14 | |
| 15 namespace bpf_dsl { | |
| 16 class PolicyCompiler; | 15 class PolicyCompiler; |
| 17 | 16 |
| 18 namespace internal { | 17 namespace internal { |
| 19 | 18 |
| 20 // Internal interface implemented by BoolExpr implementations. | 19 // Internal interface implemented by BoolExpr implementations. |
| 21 class BoolExprImpl : public base::RefCounted<BoolExprImpl> { | 20 class BoolExprImpl : public base::RefCounted<BoolExprImpl> { |
| 22 public: | 21 public: |
| 23 // Compile uses |pc| to construct an ErrorCode that conditionally continues | 22 // Compile uses |pc| to construct an ErrorCode that conditionally continues |
| 24 // to either |true_ec| or |false_ec|, depending on whether the represented | 23 // to either |true_ec| or |false_ec|, depending on whether the represented |
| 25 // boolean expression is true or false. | 24 // boolean expression is true or false. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 private: | 59 private: |
| 61 friend class base::RefCounted<ResultExprImpl>; | 60 friend class base::RefCounted<ResultExprImpl>; |
| 62 DISALLOW_COPY_AND_ASSIGN(ResultExprImpl); | 61 DISALLOW_COPY_AND_ASSIGN(ResultExprImpl); |
| 63 }; | 62 }; |
| 64 | 63 |
| 65 } // namespace internal | 64 } // namespace internal |
| 66 } // namespace bpf_dsl | 65 } // namespace bpf_dsl |
| 67 } // namespace sandbox | 66 } // namespace sandbox |
| 68 | 67 |
| 69 #endif // SANDBOX_LINUX_BPF_DSL_BPF_DSL_IMPL_H_ | 68 #endif // SANDBOX_LINUX_BPF_DSL_BPF_DSL_IMPL_H_ |
| OLD | NEW |