OLD | NEW |
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 #include "base/message_loop/message_loop.h" |
5 #include "build/build_config.h" | 6 #include "build/build_config.h" |
6 | 7 |
7 #if defined(OS_POSIX) | 8 #if defined(OS_POSIX) |
8 #if defined(OS_MACOSX) | 9 #if defined(OS_MACOSX) |
9 extern "C" { | 10 extern "C" { |
10 #include <sandbox.h> | 11 #include <sandbox.h> |
11 }; | 12 }; |
12 #endif | 13 #endif |
13 #include <fcntl.h> | 14 #include <fcntl.h> |
14 #include <stddef.h> | 15 #include <stddef.h> |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 << "Sandbox wasn't properly enabled"; | 210 << "Sandbox wasn't properly enabled"; |
210 | 211 |
211 // See if we can receive a file descriptor. | 212 // See if we can receive a file descriptor. |
212 SendFdsClientCommon("SendFdsSandboxedClient", st.st_ino); | 213 SendFdsClientCommon("SendFdsSandboxedClient", st.st_ino); |
213 } | 214 } |
214 #endif // defined(OS_MACOSX) | 215 #endif // defined(OS_MACOSX) |
215 | 216 |
216 } // namespace | 217 } // namespace |
217 | 218 |
218 #endif // defined(OS_POSIX) | 219 #endif // defined(OS_POSIX) |
OLD | NEW |