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

Side by Side Diff: components/nacl/loader/sandbox_linux/nacl_bpf_sandbox_linux.cc

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/nacl/loader/sandbox_linux/nacl_bpf_sandbox_linux.h" 5 #include "components/nacl/loader/sandbox_linux/nacl_bpf_sandbox_linux.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #if defined(USE_SECCOMP_BPF) 9 #if defined(USE_SECCOMP_BPF)
10 10
(...skipping 21 matching lines...) Expand all
32 using sandbox::bpf_dsl::Allow; 32 using sandbox::bpf_dsl::Allow;
33 using sandbox::bpf_dsl::Error; 33 using sandbox::bpf_dsl::Error;
34 using sandbox::bpf_dsl::ResultExpr; 34 using sandbox::bpf_dsl::ResultExpr;
35 35
36 class NaClBPFSandboxPolicy : public sandbox::bpf_dsl::SandboxBPFDSLPolicy { 36 class NaClBPFSandboxPolicy : public sandbox::bpf_dsl::SandboxBPFDSLPolicy {
37 public: 37 public:
38 NaClBPFSandboxPolicy() 38 NaClBPFSandboxPolicy()
39 : baseline_policy_(content::GetBPFSandboxBaselinePolicy()) {} 39 : baseline_policy_(content::GetBPFSandboxBaselinePolicy()) {}
40 virtual ~NaClBPFSandboxPolicy() {} 40 virtual ~NaClBPFSandboxPolicy() {}
41 41
42 virtual ResultExpr EvaluateSyscall(int system_call_number) const OVERRIDE; 42 virtual ResultExpr EvaluateSyscall(int system_call_number) const override;
43 virtual ResultExpr InvalidSyscall() const OVERRIDE { 43 virtual ResultExpr InvalidSyscall() const override {
44 return baseline_policy_->InvalidSyscall(); 44 return baseline_policy_->InvalidSyscall();
45 } 45 }
46 46
47 private: 47 private:
48 scoped_ptr<sandbox::bpf_dsl::SandboxBPFDSLPolicy> baseline_policy_; 48 scoped_ptr<sandbox::bpf_dsl::SandboxBPFDSLPolicy> baseline_policy_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(NaClBPFSandboxPolicy); 50 DISALLOW_COPY_AND_ASSIGN(NaClBPFSandboxPolicy);
51 }; 51 };
52 52
53 ResultExpr NaClBPFSandboxPolicy::EvaluateSyscall(int sysno) const { 53 ResultExpr NaClBPFSandboxPolicy::EvaluateSyscall(int sysno) const {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 new NaClBPFSandboxPolicy)); 134 new NaClBPFSandboxPolicy));
135 if (sandbox_is_initialized) { 135 if (sandbox_is_initialized) {
136 RunSandboxSanityChecks(); 136 RunSandboxSanityChecks();
137 return true; 137 return true;
138 } 138 }
139 #endif // defined(USE_SECCOMP_BPF) 139 #endif // defined(USE_SECCOMP_BPF)
140 return false; 140 return false;
141 } 141 }
142 142
143 } // namespace nacl 143 } // namespace nacl
OLDNEW
« no previous file with comments | « components/nacl/loader/nonsfi/nonsfi_sandbox.h ('k') | components/nacl/renderer/manifest_service_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698