Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Side by Side Diff: util/mach/child_port_handshake.h

Issue 799463003: MachMessageServer::Interface implementations: minor cleanups (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | util/mach/child_port_handshake.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 const mach_msg_trailer_t* trailer,
140 bool* destroy_complex_request) override; 140 bool* destroy_request) override;
141 141
142 //! \brief Runs the client. 142 //! \brief Runs the client.
143 //! 143 //!
144 //! This function performs these tasks: 144 //! This function performs these tasks:
145 //! - Reads the token from the pipe. 145 //! - Reads the token from the pipe.
146 //! - Reads the bootstrap service name from the pipe. 146 //! - Reads the bootstrap service name from the pipe.
147 //! - 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()`.
148 //! - Sends a check-in message to the server by calling 148 //! - Sends a check-in message to the server by calling
149 //! `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
150 //! right. 150 //! right.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 bool checked_in_; 218 bool checked_in_;
219 219
220 friend class test::ChildPortHandshakeTest; 220 friend class test::ChildPortHandshakeTest;
221 221
222 DISALLOW_COPY_AND_ASSIGN(ChildPortHandshake); 222 DISALLOW_COPY_AND_ASSIGN(ChildPortHandshake);
223 }; 223 };
224 224
225 } // namespace crashpad 225 } // namespace crashpad
226 226
227 #endif // CRASHPAD_UTIL_MACH_CHILD_PORT_HANDSHAKE_H_ 227 #endif // CRASHPAD_UTIL_MACH_CHILD_PORT_HANDSHAKE_H_
OLDNEW
« no previous file with comments | « no previous file | util/mach/child_port_handshake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698