OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IPC_MACH_PORT_ATTACHMENT_MAC_H_ | 5 #ifndef IPC_MACH_PORT_ATTACHMENT_MAC_H_ |
6 #define IPC_MACH_PORT_ATTACHMENT_MAC_H_ | 6 #define IPC_MACH_PORT_ATTACHMENT_MAC_H_ |
7 | 7 |
8 #include <mach/mach.h> | 8 #include <mach/mach.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
| 11 #include "base/macros.h" |
11 #include "base/process/process_handle.h" | 12 #include "base/process/process_handle.h" |
12 #include "ipc/brokerable_attachment.h" | 13 #include "ipc/brokerable_attachment.h" |
13 #include "ipc/ipc_export.h" | 14 #include "ipc/ipc_export.h" |
14 #include "ipc/mach_port_mac.h" | 15 #include "ipc/mach_port_mac.h" |
15 | 16 |
16 namespace IPC { | 17 namespace IPC { |
17 namespace internal { | 18 namespace internal { |
18 | 19 |
19 // This class represents an OSX mach_port_t attached to a Chrome IPC message. | 20 // This class represents an OSX mach_port_t attached to a Chrome IPC message. |
20 class IPC_EXPORT MachPortAttachmentMac : public BrokerableAttachment { | 21 class IPC_EXPORT MachPortAttachmentMac : public BrokerableAttachment { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // client code that receives the Chrome IPC message is always expected to take | 77 // client code that receives the Chrome IPC message is always expected to take |
77 // ownership. | 78 // ownership. |
78 bool owns_mach_port_; | 79 bool owns_mach_port_; |
79 DISALLOW_COPY_AND_ASSIGN(MachPortAttachmentMac); | 80 DISALLOW_COPY_AND_ASSIGN(MachPortAttachmentMac); |
80 }; | 81 }; |
81 | 82 |
82 } // namespace internal | 83 } // namespace internal |
83 } // namespace IPC | 84 } // namespace IPC |
84 | 85 |
85 #endif // IPC_MACH_PORT_ATTACHMENT_MAC_H_ | 86 #endif // IPC_MACH_PORT_ATTACHMENT_MAC_H_ |
OLD | NEW |