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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 //! points and is ready to service requests. | 42 //! points and is ready to service requests. |
43 virtual void ExceptionHandlerServerStarted() = 0; | 43 virtual void ExceptionHandlerServerStarted() = 0; |
44 | 44 |
45 //! \brief Called when the client has signalled that it has encountered an | 45 //! \brief Called when the client has signalled that it has encountered an |
46 //! exception and so wants a crash dump to be taken. | 46 //! exception and so wants a crash dump to be taken. |
47 //! | 47 //! |
48 //! \param[in] process A handle to the client process. Ownership of the | 48 //! \param[in] process A handle to the client process. Ownership of the |
49 //! lifetime of this handle is not passed to the delegate. | 49 //! lifetime of this handle is not passed to the delegate. |
50 //! \param[in] exception_information_address The address in the client's | 50 //! \param[in] exception_information_address The address in the client's |
51 //! address space of an ExceptionInformation structure. | 51 //! address space of an ExceptionInformation structure. |
52 //! \return The exit code that should be used when terminating the client | 52 virtual void ExceptionHandlerServerException( |
53 //! process. | |
54 virtual unsigned int ExceptionHandlerServerException( | |
55 HANDLE process, | 53 HANDLE process, |
56 WinVMAddress exception_information_address) = 0; | 54 WinVMAddress exception_information_address) = 0; |
57 }; | 55 }; |
58 | 56 |
59 //! \brief Constructs the exception handling server. | 57 //! \brief Constructs the exception handling server. |
60 ExceptionHandlerServer(); | 58 ExceptionHandlerServer(); |
61 ~ExceptionHandlerServer(); | 59 ~ExceptionHandlerServer(); |
62 | 60 |
63 //! \brief Runs the exception-handling server. | 61 //! \brief Runs the exception-handling server. |
64 //! | 62 //! |
(...skipping 18 matching lines...) Expand all Loading... |
83 | 81 |
84 base::Lock clients_lock_; | 82 base::Lock clients_lock_; |
85 std::set<internal::ClientData*> clients_; | 83 std::set<internal::ClientData*> clients_; |
86 | 84 |
87 DISALLOW_COPY_AND_ASSIGN(ExceptionHandlerServer); | 85 DISALLOW_COPY_AND_ASSIGN(ExceptionHandlerServer); |
88 }; | 86 }; |
89 | 87 |
90 } // namespace crashpad | 88 } // namespace crashpad |
91 | 89 |
92 #endif // CRASHPAD_UTIL_WIN_EXCEPTION_HANDLER_SERVER_H_ | 90 #endif // CRASHPAD_UTIL_WIN_EXCEPTION_HANDLER_SERVER_H_ |
OLD | NEW |