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

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

Issue 1409073013: mac: Make crashpad_handler get its receive right from its client (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 1 month 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 | « util/mach/child_port_handshake.h ('k') | util/win/exception_handler_server.h » ('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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 //! ignored. Set \a receive_large to #kReceiveLargeResize instead. 150 //! ignored. Set \a receive_large to #kReceiveLargeResize instead.
151 //! \param[in] persistent Chooses between one-shot and persistent operation. 151 //! \param[in] persistent Chooses between one-shot and persistent operation.
152 //! \param[in] receive_large Determines the behavior upon encountering a 152 //! \param[in] receive_large Determines the behavior upon encountering a
153 //! message larger than the receive buffer’s size. 153 //! message larger than the receive buffer’s size.
154 //! \param[in] timeout_ms The maximum duration that this entire function will 154 //! \param[in] timeout_ms The maximum duration that this entire function will
155 //! run, in milliseconds. This may be #kMachMessageTimeoutNonblocking or 155 //! run, in milliseconds. This may be #kMachMessageTimeoutNonblocking or
156 //! #kMachMessageTimeoutWaitIndefinitely. When \a persistent is 156 //! #kMachMessageTimeoutWaitIndefinitely. When \a persistent is
157 //! #kPersistent, the timeout applies to the overall duration of this 157 //! #kPersistent, the timeout applies to the overall duration of this
158 //! function, not to any individual `mach_msg()` call. 158 //! function, not to any individual `mach_msg()` call.
159 //! 159 //!
160 //! \return On success, `KERN_SUCCESS` (when \a persistent is #kOneShot) or 160 //! \return On success, `MACH_MSG_SUCCESS` (when \a persistent is #kOneShot)
161 //! `MACH_RCV_TIMED_OUT` (when \a persistent is #kOneShot and \a 161 //! or `MACH_RCV_TIMED_OUT` (when \a persistent is #kOneShot and \a
162 //! timeout_ms is not #kMachMessageTimeoutWaitIndefinitely). This function 162 //! timeout_ms is not #kMachMessageTimeoutWaitIndefinitely). This function
163 //! has no successful return value when \a persistent is #kPersistent and 163 //! has no successful return value when \a persistent is #kPersistent and
164 //! \a timeout_ms is #kMachMessageTimeoutWaitIndefinitely. On failure, 164 //! \a timeout_ms is #kMachMessageTimeoutWaitIndefinitely. On failure,
165 //! returns a value identifying the nature of the error. 165 //! returns a value identifying the nature of the error.
166 static mach_msg_return_t Run(Interface* interface, 166 static mach_msg_return_t Run(Interface* interface,
167 mach_port_t receive_port, 167 mach_port_t receive_port,
168 mach_msg_options_t options, 168 mach_msg_options_t options,
169 Persistent persistent, 169 Persistent persistent,
170 ReceiveLarge receive_large, 170 ReceiveLarge receive_large,
171 mach_msg_timeout_t timeout_ms); 171 mach_msg_timeout_t timeout_ms);
172 172
173 private: 173 private:
174 DISALLOW_IMPLICIT_CONSTRUCTORS(MachMessageServer); 174 DISALLOW_IMPLICIT_CONSTRUCTORS(MachMessageServer);
175 }; 175 };
176 176
177 } // namespace crashpad 177 } // namespace crashpad
178 178
179 #endif // CRASHPAD_UTIL_MACH_MACH_MESSAGE_SERVER_H_ 179 #endif // CRASHPAD_UTIL_MACH_MACH_MESSAGE_SERVER_H_
OLDNEW
« no previous file with comments | « util/mach/child_port_handshake.h ('k') | util/win/exception_handler_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698