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

Side by Side Diff: client/crashpad_client.h

Issue 1377963002: win: Add and use a custom CaptureContext() implementation (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Address review feeback (2) 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 | « client/capture_context_mac_test.cc ('k') | client/simulate_crash_win.h » ('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 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 //! and upload server. 86 //! and upload server.
87 //! 87 //!
88 //! \param[in] ipc_port The full name of the crash handler IPC port. 88 //! \param[in] ipc_port The full name of the crash handler IPC port.
89 //! 89 //!
90 //! \return `true` on success and `false` on failure. 90 //! \return `true` on success and `false` on failure.
91 bool SetHandler(const std::string& ipc_port); 91 bool SetHandler(const std::string& ipc_port);
92 92
93 //! \brief Requests that the handler capture a dump even though there hasn't 93 //! \brief Requests that the handler capture a dump even though there hasn't
94 //! been a crash. 94 //! been a crash.
95 //! 95 //!
96 //! \param[in] context A CONTEXT, generally captured by `RtlCaptureContext()` 96 //! \param[in] context A `CONTEXT`, generally captured by CaptureContext() or
97 //! or similar. 97 //! similar.
98 static void DumpWithoutCrash(const CONTEXT& context); 98 static void DumpWithoutCrash(const CONTEXT& context);
99 #endif 99 #endif
100 100
101 //! \brief Configures the process to direct its crashes to a Crashpad handler. 101 //! \brief Configures the process to direct its crashes to a Crashpad handler.
102 //! 102 //!
103 //! The Crashpad handler must previously have been started by StartHandler() 103 //! The Crashpad handler must previously have been started by StartHandler()
104 //! or configured by SetHandler(). 104 //! or configured by SetHandler().
105 //! 105 //!
106 //! On Mac OS X, this method sets the task’s exception port for `EXC_CRASH`, 106 //! On Mac OS X, this method sets the task’s exception port for `EXC_CRASH`,
107 //! `EXC_RESOURCE`, and `EXC_GUARD` exceptions to the Mach send right obtained 107 //! `EXC_RESOURCE`, and `EXC_GUARD` exceptions to the Mach send right obtained
(...skipping 18 matching lines...) Expand all
126 #if defined(OS_MACOSX) 126 #if defined(OS_MACOSX)
127 base::mac::ScopedMachSendRight exception_port_; 127 base::mac::ScopedMachSendRight exception_port_;
128 #endif 128 #endif
129 129
130 DISALLOW_COPY_AND_ASSIGN(CrashpadClient); 130 DISALLOW_COPY_AND_ASSIGN(CrashpadClient);
131 }; 131 };
132 132
133 } // namespace crashpad 133 } // namespace crashpad
134 134
135 #endif // CRASHPAD_CLIENT_CRASHPAD_CLIENT_H_ 135 #endif // CRASHPAD_CLIENT_CRASHPAD_CLIENT_H_
OLDNEW
« no previous file with comments | « client/capture_context_mac_test.cc ('k') | client/simulate_crash_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698