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 19 matching lines...) Expand all Loading... |
30 public: | 30 public: |
31 //! \brief An interface that the request message that is a part of the | 31 //! \brief An interface that the request message that is a part of the |
32 //! `child_port` Mach subsystem can be dispatched to. | 32 //! `child_port` Mach subsystem can be dispatched to. |
33 class Interface { | 33 class Interface { |
34 public: | 34 public: |
35 //! \brief Handles check-ins sent by `child_port_check_in()`. | 35 //! \brief Handles check-ins sent by `child_port_check_in()`. |
36 //! | 36 //! |
37 //! This behaves equivalently to a `handle_child_port_check_in()` function | 37 //! This behaves equivalently to a `handle_child_port_check_in()` function |
38 //! used with `child_port_server()`. | 38 //! used with `child_port_server()`. |
39 //! | 39 //! |
| 40 //! \param[in] server |
| 41 //! \param[in] token |
| 42 //! \param[in] port |
| 43 //! \param[in] right_type |
40 //! \param[in] trailer The trailer received with the request message. | 44 //! \param[in] trailer The trailer received with the request message. |
41 //! \param[out] destroy_request `true` if the request message is to be | 45 //! \param[out] destroy_request `true` if the request message is to be |
42 //! destroyed even when this method returns success. See | 46 //! destroyed even when this method returns success. See |
43 //! MachMessageServer::Interface. | 47 //! MachMessageServer::Interface. |
44 virtual kern_return_t HandleChildPortCheckIn( | 48 virtual kern_return_t HandleChildPortCheckIn( |
45 child_port_server_t server, | 49 child_port_server_t server, |
46 const child_port_token_t token, | 50 const child_port_token_t token, |
47 mach_port_t port, | 51 mach_port_t port, |
48 mach_msg_type_name_t right_type, | 52 mach_msg_type_name_t right_type, |
49 const mach_msg_trailer_t* trailer, | 53 const mach_msg_trailer_t* trailer, |
(...skipping 18 matching lines...) Expand all Loading... |
68 | 72 |
69 private: | 73 private: |
70 Interface* interface_; // weak | 74 Interface* interface_; // weak |
71 | 75 |
72 DISALLOW_COPY_AND_ASSIGN(ChildPortServer); | 76 DISALLOW_COPY_AND_ASSIGN(ChildPortServer); |
73 }; | 77 }; |
74 | 78 |
75 } // namespace crashpad | 79 } // namespace crashpad |
76 | 80 |
77 #endif // CRASHPAD_UTIL_MACH_CHILD_PORT_SERVER_H_ | 81 #endif // CRASHPAD_UTIL_MACH_CHILD_PORT_SERVER_H_ |
OLD | NEW |