Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Crashpad Authors. All rights reserved. | 1 // Copyright 2015 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 82 //! | 82 //! |
| 83 //! See <a | 83 //! See <a |
| 84 //! href="https://msdn.microsoft.com/en-us/library/windows/desktop/aa384203">Int erprocess | 84 //! href="https://msdn.microsoft.com/en-us/library/windows/desktop/aa384203">Int erprocess |
| 85 //! Communication Between 32-bit and 64-bit Applications</a> for details on | 85 //! Communication Between 32-bit and 64-bit Applications</a> for details on |
| 86 //! communicating handle values between processes of varying bitness. | 86 //! communicating handle values between processes of varying bitness. |
| 87 struct RegistrationResponse { | 87 struct RegistrationResponse { |
| 88 //! \brief An event `HANDLE`, valid in the client process, that should be | 88 //! \brief An event `HANDLE`, valid in the client process, that should be |
| 89 //! signaled to request a crash report. 64-bit clients should convert the | 89 //! signaled to request a crash report. 64-bit clients should convert the |
| 90 //! value to a `HANDLE` using sign-extension. | 90 //! value to a `HANDLE` using sign-extension. |
| 91 uint32_t request_report_event; | 91 uint32_t request_report_event; |
| 92 //! \brief An event `HANDLE`, valid in the client process, that will be | |
|
Mark Mentovai
2015/09/23 20:00:52
Blank line before this.
scottmg
2015/09/24 19:16:53
Done.
| |
| 93 //! signalled once a crash report has been gathered. 64-bit clients should | |
| 94 //! convert the value to a `HANDLE` using sign-extension. | |
| 95 uint32_t report_completed_event; | |
| 92 }; | 96 }; |
| 93 | 97 |
| 94 //! \brief The response sent back to the client via SendToCrashHandlerServer(). | 98 //! \brief The response sent back to the client via SendToCrashHandlerServer(). |
| 95 union ServerToClientMessage { | 99 union ServerToClientMessage { |
| 96 RegistrationResponse registration; | 100 RegistrationResponse registration; |
| 97 }; | 101 }; |
| 98 | 102 |
| 99 #pragma pack(pop) | 103 #pragma pack(pop) |
| 100 | 104 |
| 101 //! \brief Connect over the given \a pipe_name, passing \a message to the | 105 //! \brief Connect over the given \a pipe_name, passing \a message to the |
| 102 //! server, storing the server's reply into \a response. | 106 //! server, storing the server's reply into \a response. |
| 103 //! | 107 //! |
| 104 //! Typically clients will not use this directly, instead using | 108 //! Typically clients will not use this directly, instead using |
| 105 //! CrashpadClient::SetHandler(). | 109 //! CrashpadClient::SetHandler(). |
| 106 //! | 110 //! |
| 107 //! \sa CrashpadClient::SetHandler() | 111 //! \sa CrashpadClient::SetHandler() |
| 108 bool SendToCrashHandlerServer(const base::string16& pipe_name, | 112 bool SendToCrashHandlerServer(const base::string16& pipe_name, |
| 109 const ClientToServerMessage& message, | 113 const ClientToServerMessage& message, |
| 110 ServerToClientMessage* response); | 114 ServerToClientMessage* response); |
| 111 | 115 |
| 112 } // namespace crashpad | 116 } // namespace crashpad |
| 113 | 117 |
| 114 #endif // CRASHPAD_UTIL_WIN_REGISTRATION_PROTOCOL_WIN_H_ | 118 #endif // CRASHPAD_UTIL_WIN_REGISTRATION_PROTOCOL_WIN_H_ |
| OLD | NEW |