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

Side by Side Diff: sandbox/linux/seccomp-bpf/syscall_iterator.h

Issue 570163003: Large IWYU cleanup for seccomp-bpf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trap-errorcode
Patch Set: Sort #includes Created 6 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SECCOMP_BPF_SYSCALL_ITERATOR_H__ 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_SYSCALL_ITERATOR_H__
6 #define SANDBOX_LINUX_SECCOMP_BPF_SYSCALL_ITERATOR_H__ 6 #define SANDBOX_LINUX_SECCOMP_BPF_SYSCALL_ITERATOR_H__
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/macros.h"
11 #include "sandbox/sandbox_export.h" 11 #include "sandbox/sandbox_export.h"
12 12
13 namespace sandbox { 13 namespace sandbox {
14 14
15 // Iterates over the entire system call range from 0..0xFFFFFFFFu. This 15 // Iterates over the entire system call range from 0..0xFFFFFFFFu. This
16 // iterator is aware of how system calls look like and will skip quickly 16 // iterator is aware of how system calls look like and will skip quickly
17 // over ranges that can't contain system calls. It iterates more slowly 17 // over ranges that can't contain system calls. It iterates more slowly
18 // whenever it reaches a range that is potentially problematic, returning 18 // whenever it reaches a range that is potentially problematic, returning
19 // the last invalid value before a valid range of system calls, and the 19 // the last invalid value before a valid range of system calls, and the
20 // first invalid value after a valid range of syscalls. It iterates over 20 // first invalid value after a valid range of syscalls. It iterates over
(...skipping 26 matching lines...) Expand all
47 bool invalid_only_; 47 bool invalid_only_;
48 bool done_; 48 bool done_;
49 uint32_t num_; 49 uint32_t num_;
50 50
51 DISALLOW_IMPLICIT_CONSTRUCTORS(SyscallIterator); 51 DISALLOW_IMPLICIT_CONSTRUCTORS(SyscallIterator);
52 }; 52 };
53 53
54 } // namespace sandbox 54 } // namespace sandbox
55 55
56 #endif // SANDBOX_LINUX_SECCOMP_BPF_SYSCALL_ITERATOR_H__ 56 #endif // SANDBOX_LINUX_SECCOMP_BPF_SYSCALL_ITERATOR_H__
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp-bpf/sandbox_bpf_test_runner.cc ('k') | sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698