Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: util/win/exception_handler_server.h

Issue 1356383002: win: Implement CRASHPAD_SIMULATE_CRASH() (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: fixes Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « snapshot/win/exception_snapshot_win_test.cc ('k') | util/win/exception_handler_server.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « snapshot/win/exception_snapshot_win_test.cc ('k') | util/win/exception_handler_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698