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_ATTACHMENT_BROKER_PRIVILEGED_MAC_H_ | 5 #ifndef IPC_ATTACHMENT_BROKER_PRIVILEGED_MAC_H_ |
6 #define IPC_ATTACHMENT_BROKER_PRIVILEGED_MAC_H_ | 6 #define IPC_ATTACHMENT_BROKER_PRIVILEGED_MAC_H_ |
7 | 7 |
8 #include <mach/mach.h> | 8 #include <mach/mach.h> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // Makes an attachment, queues it, and notifies the observers. | 116 // Makes an attachment, queues it, and notifies the observers. |
117 void RouteWireFormatToSelf(const MachPortWireFormat& wire_format); | 117 void RouteWireFormatToSelf(const MachPortWireFormat& wire_format); |
118 | 118 |
119 // |wire_format.destination_process| must be another process. | 119 // |wire_format.destination_process| must be another process. |
120 // |wire_format.mach_port| must be the intermediate Mach port. | 120 // |wire_format.mach_port| must be the intermediate Mach port. |
121 // Ownership of |wire_format.mach_port| is implicitly passed to the process | 121 // Ownership of |wire_format.mach_port| is implicitly passed to the process |
122 // that receives the Chrome IPC message. | 122 // that receives the Chrome IPC message. |
123 void RouteWireFormatToAnother(const MachPortWireFormat& wire_format); | 123 void RouteWireFormatToAnother(const MachPortWireFormat& wire_format); |
124 | 124 |
125 // The port provider must live at least as long as the AttachmentBroker. | 125 // The port provider must live at least as long as the AttachmentBroker. |
126 base::PortProvider* port_provider_; | 126 const base::PortProvider* port_provider_; |
127 | 127 |
128 DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerPrivilegedMac); | 128 DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerPrivilegedMac); |
129 }; | 129 }; |
130 | 130 |
131 } // namespace IPC | 131 } // namespace IPC |
132 | 132 |
133 #endif // IPC_ATTACHMENT_BROKER_PRIVILEGED_MAC_H_ | 133 #endif // IPC_ATTACHMENT_BROKER_PRIVILEGED_MAC_H_ |
OLD | NEW |