OLD | NEW |
1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 //! before terminating, where termination is detected by noticing that the | 129 //! before terminating, where termination is detected by noticing that the |
130 //! read side of the shared pipe has closed. On failure, a message | 130 //! read side of the shared pipe has closed. On failure, a message |
131 //! indiciating the nature of the failure will be logged. | 131 //! indiciating the nature of the failure will be logged. |
132 mach_port_t RunServer(); | 132 mach_port_t RunServer(); |
133 | 133 |
134 // ChildPortServer::Interface: | 134 // ChildPortServer::Interface: |
135 kern_return_t HandleChildPortCheckIn(child_port_server_t server, | 135 kern_return_t HandleChildPortCheckIn(child_port_server_t server, |
136 child_port_token_t token, | 136 child_port_token_t token, |
137 mach_port_t port, | 137 mach_port_t port, |
138 mach_msg_type_name_t right_type, | 138 mach_msg_type_name_t right_type, |
| 139 const mach_msg_trailer_t* trailer, |
139 bool* destroy_complex_request) override; | 140 bool* destroy_complex_request) override; |
140 | 141 |
141 //! \brief Runs the client. | 142 //! \brief Runs the client. |
142 //! | 143 //! |
143 //! This function performs these tasks: | 144 //! This function performs these tasks: |
144 //! - Reads the token from the pipe. | 145 //! - Reads the token from the pipe. |
145 //! - Reads the bootstrap service name from the pipe. | 146 //! - Reads the bootstrap service name from the pipe. |
146 //! - Obtains a send right to the server by calling `bootstrap_look_up()`. | 147 //! - Obtains a send right to the server by calling `bootstrap_look_up()`. |
147 //! - Sends a check-in message to the server by calling | 148 //! - Sends a check-in message to the server by calling |
148 //! `child_port_check_in()`, providing the token and the user-supplied port | 149 //! `child_port_check_in()`, providing the token and the user-supplied port |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 bool checked_in_; | 218 bool checked_in_; |
218 | 219 |
219 friend class test::ChildPortHandshakeTest; | 220 friend class test::ChildPortHandshakeTest; |
220 | 221 |
221 DISALLOW_COPY_AND_ASSIGN(ChildPortHandshake); | 222 DISALLOW_COPY_AND_ASSIGN(ChildPortHandshake); |
222 }; | 223 }; |
223 | 224 |
224 } // namespace crashpad | 225 } // namespace crashpad |
225 | 226 |
226 #endif // CRASHPAD_UTIL_MACH_CHILD_PORT_HANDSHAKE_H_ | 227 #endif // CRASHPAD_UTIL_MACH_CHILD_PORT_HANDSHAKE_H_ |
OLD | NEW |