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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 void Run(Delegate* delegate, const std::string& pipe_name); | 69 void Run(Delegate* delegate, const std::string& pipe_name); |
70 | 70 |
71 //! \brief Stops the exception-handling server. Returns immediately. The | 71 //! \brief Stops the exception-handling server. Returns immediately. The |
72 //! object must not be destroyed until Run() returns. | 72 //! object must not be destroyed until Run() returns. |
73 void Stop(); | 73 void Stop(); |
74 | 74 |
75 private: | 75 private: |
76 static bool ServiceClientConnection( | 76 static bool ServiceClientConnection( |
77 const internal::PipeServiceContext& service_context); | 77 const internal::PipeServiceContext& service_context); |
78 static DWORD __stdcall PipeServiceProc(void* ctx); | 78 static DWORD __stdcall PipeServiceProc(void* ctx); |
79 static void __stdcall OnDumpEvent(void* ctx, BOOLEAN); | 79 static void __stdcall OnCrashDumpEvent(void* ctx, BOOLEAN); |
| 80 static void __stdcall OnNonCrashDumpEvent(void* ctx, BOOLEAN); |
80 static void __stdcall OnProcessEnd(void* ctx, BOOLEAN); | 81 static void __stdcall OnProcessEnd(void* ctx, BOOLEAN); |
81 | 82 |
82 ScopedKernelHANDLE port_; | 83 ScopedKernelHANDLE port_; |
83 | 84 |
84 base::Lock clients_lock_; | 85 base::Lock clients_lock_; |
85 std::set<internal::ClientData*> clients_; | 86 std::set<internal::ClientData*> clients_; |
86 | 87 |
87 DISALLOW_COPY_AND_ASSIGN(ExceptionHandlerServer); | 88 DISALLOW_COPY_AND_ASSIGN(ExceptionHandlerServer); |
88 }; | 89 }; |
89 | 90 |
90 } // namespace crashpad | 91 } // namespace crashpad |
91 | 92 |
92 #endif // CRASHPAD_UTIL_WIN_EXCEPTION_HANDLER_SERVER_H_ | 93 #endif // CRASHPAD_UTIL_WIN_EXCEPTION_HANDLER_SERVER_H_ |
OLD | NEW |