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 #include "sandbox/linux/services/thread_helpers.h" | 5 #include "sandbox/linux/services/thread_helpers.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 #include <signal.h> | 9 #include <signal.h> |
10 #include <sys/types.h> | 10 #include <sys/types.h> |
11 #include <sys/stat.h> | 11 #include <sys/stat.h> |
12 #include <unistd.h> | 12 #include <unistd.h> |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "base/basictypes.h" | |
17 #include "base/bind.h" | 16 #include "base/bind.h" |
18 #include "base/callback.h" | 17 #include "base/callback.h" |
19 #include "base/files/scoped_file.h" | 18 #include "base/files/scoped_file.h" |
20 #include "base/logging.h" | 19 #include "base/logging.h" |
21 #include "base/posix/eintr_wrapper.h" | 20 #include "base/posix/eintr_wrapper.h" |
22 #include "base/strings/string_number_conversions.h" | 21 #include "base/strings/string_number_conversions.h" |
23 #include "base/threading/platform_thread.h" | 22 #include "base/threading/platform_thread.h" |
24 #include "base/threading/thread.h" | 23 #include "base/threading/thread.h" |
25 #include "sandbox/linux/services/proc_util.h" | 24 #include "sandbox/linux/services/proc_util.h" |
26 | 25 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 148 |
150 return true; | 149 return true; |
151 } | 150 } |
152 | 151 |
153 // static | 152 // static |
154 const char* ThreadHelpers::GetAssertSingleThreadedErrorMessageForTests() { | 153 const char* ThreadHelpers::GetAssertSingleThreadedErrorMessageForTests() { |
155 return kAssertSingleThreadedError; | 154 return kAssertSingleThreadedError; |
156 } | 155 } |
157 | 156 |
158 } // namespace sandbox | 157 } // namespace sandbox |
OLD | NEW |