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 20 matching lines...) Expand all Loading... | |
| 31 //! \brief The address of an EXCEPTION_POINTERS structure in the client | 31 //! \brief The address of an EXCEPTION_POINTERS structure in the client |
| 32 //! process that describes the exception. | 32 //! process that describes the exception. |
| 33 WinVMAddress exception_pointers; | 33 WinVMAddress exception_pointers; |
| 34 | 34 |
| 35 //! \brief The thread on which the exception happened. | 35 //! \brief The thread on which the exception happened. |
| 36 DWORD thread_id; | 36 DWORD thread_id; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 //! \brief A client registration request. | 39 //! \brief A client registration request. |
| 40 struct RegistrationRequest { | 40 struct RegistrationRequest { |
| 41 //! \brief The expected value of `version`. This should be changed whenever | |
| 42 //! the messages or ExceptionInformation are modified incompatibly. | |
| 43 enum { kMessageVersion = 1 }; | |
| 44 | |
| 45 //! \brief Version field to detect skew between client and server. Should be | |
| 46 //! set to kMessageVersion. | |
| 47 int version; | |
| 48 | |
| 49 //! \brief The PID of the client process. | |
| 50 DWORD client_process_id; | |
|
Mark Mentovai
2015/09/04 16:05:55
Nice repacking. :)
scottmg
2015/09/04 18:50:00
Tell me 20 or 30 times and eventually I remember.
| |
| 51 | |
| 41 //! \brief The address, in the client process address space, of an | 52 //! \brief The address, in the client process address space, of an |
| 42 //! ExceptionInformation structure. | 53 //! ExceptionInformation structure. |
| 43 WinVMAddress exception_information; | 54 WinVMAddress exception_information; |
| 44 | |
| 45 //! \brief The PID of the client process. | |
| 46 DWORD client_process_id; | |
| 47 }; | 55 }; |
| 48 | 56 |
| 49 //! \brief A message only sent to the server by itself to trigger shutdown. | 57 //! \brief A message only sent to the server by itself to trigger shutdown. |
| 50 struct ShutdownRequest { | 58 struct ShutdownRequest { |
| 51 //! \brief A randomly generated token used to validate the the shutdown | 59 //! \brief A randomly generated token used to validate the the shutdown |
| 52 //! request was not sent from another process. | 60 //! request was not sent from another process. |
| 53 uint64_t token; | 61 uint64_t token; |
| 54 }; | 62 }; |
| 55 | 63 |
| 56 //! \brief The message passed from client to server by | 64 //! \brief The message passed from client to server by |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 97 //! CrashpadClient::SetHandler(). | 105 //! CrashpadClient::SetHandler(). |
| 98 //! | 106 //! |
| 99 //! \sa CrashpadClient::SetHandler() | 107 //! \sa CrashpadClient::SetHandler() |
| 100 bool SendToCrashHandlerServer(const base::string16& pipe_name, | 108 bool SendToCrashHandlerServer(const base::string16& pipe_name, |
| 101 const ClientToServerMessage& message, | 109 const ClientToServerMessage& message, |
| 102 ServerToClientMessage* response); | 110 ServerToClientMessage* response); |
| 103 | 111 |
| 104 } // namespace crashpad | 112 } // namespace crashpad |
| 105 | 113 |
| 106 #endif // CRASHPAD_UTIL_WIN_REGISTRATION_PROTOCOL_WIN_H_ | 114 #endif // CRASHPAD_UTIL_WIN_REGISTRATION_PROTOCOL_WIN_H_ |
| OLD | NEW |