| 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 #ifndef BASE_MACH_IPC_MAC_H_ | 5 #ifndef BASE_MACH_IPC_MAC_H_ |
| 6 #define BASE_MACH_IPC_MAC_H_ | 6 #define BASE_MACH_IPC_MAC_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 #include <mach/mach.h> | 8 #include <mach/mach.h> |
| 10 #include <mach/message.h> | 9 #include <mach/message.h> |
| 11 #include <servers/bootstrap.h> | 10 #include <servers/bootstrap.h> |
| 12 #include <sys/types.h> | 11 #include <sys/types.h> |
| 13 | 12 |
| 14 #include <CoreServices/CoreServices.h> | 13 #include <CoreServices/CoreServices.h> |
| 15 | 14 |
| 16 #include "base/base_export.h" | 15 #include "base/base_export.h" |
| 17 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 // Note that unless the calling task has send rights to the passed task port, | 317 // Note that unless the calling task has send rights to the passed task port, |
| 319 // this will fail unless the calling task is running as root. | 318 // this will fail unless the calling task is running as root. |
| 320 kern_return_t BASE_EXPORT GetNumberOfMachPorts(mach_port_t task_port, | 319 kern_return_t BASE_EXPORT GetNumberOfMachPorts(mach_port_t task_port, |
| 321 int* port_count); | 320 int* port_count); |
| 322 | 321 |
| 323 } // namespace mac | 322 } // namespace mac |
| 324 | 323 |
| 325 } // namespace base | 324 } // namespace base |
| 326 | 325 |
| 327 #endif // BASE_MACH_IPC_MAC_H_ | 326 #endif // BASE_MACH_IPC_MAC_H_ |
| OLD | NEW |