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

Side by Side Diff: sandbox/linux/bpf_dsl/bpf_dsl.cc

Issue 1292753009: sandbox/linux: move ErrorCode into bpf_dsl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bpf_dsl-deps
Patch Set: Rebase and cleanup test code Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « sandbox/linux/bpf_dsl/DEPS ('k') | sandbox/linux/bpf_dsl/bpf_dsl_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "sandbox/linux/bpf_dsl/bpf_dsl.h" 5 #include "sandbox/linux/bpf_dsl/bpf_dsl.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "sandbox/linux/bpf_dsl/bpf_dsl_impl.h" 11 #include "sandbox/linux/bpf_dsl/bpf_dsl_impl.h"
12 #include "sandbox/linux/bpf_dsl/errorcode.h"
12 #include "sandbox/linux/bpf_dsl/policy_compiler.h" 13 #include "sandbox/linux/bpf_dsl/policy_compiler.h"
13 #include "sandbox/linux/seccomp-bpf/errorcode.h"
14 14
15 namespace sandbox { 15 namespace sandbox {
16 namespace bpf_dsl { 16 namespace bpf_dsl {
17 namespace { 17 namespace {
18 18
19 class AllowResultExprImpl : public internal::ResultExprImpl { 19 class AllowResultExprImpl : public internal::ResultExprImpl {
20 public: 20 public:
21 AllowResultExprImpl() {} 21 AllowResultExprImpl() {}
22 22
23 ErrorCode Compile(PolicyCompiler* pc) const override { 23 ErrorCode Compile(PolicyCompiler* pc) const override {
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 new const IfThenResultExprImpl(clause.first, clause.second, expr)); 367 new const IfThenResultExprImpl(clause.first, clause.second, expr));
368 } 368 }
369 return expr; 369 return expr;
370 } 370 }
371 371
372 } // namespace bpf_dsl 372 } // namespace bpf_dsl
373 } // namespace sandbox 373 } // namespace sandbox
374 374
375 template class scoped_refptr<const sandbox::bpf_dsl::internal::BoolExprImpl>; 375 template class scoped_refptr<const sandbox::bpf_dsl::internal::BoolExprImpl>;
376 template class scoped_refptr<const sandbox::bpf_dsl::internal::ResultExprImpl>; 376 template class scoped_refptr<const sandbox::bpf_dsl::internal::ResultExprImpl>;
OLDNEW
« no previous file with comments | « sandbox/linux/bpf_dsl/DEPS ('k') | sandbox/linux/bpf_dsl/bpf_dsl_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698