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

Side by Side Diff: base/debug/dump_without_crashing.h

Issue 99523009: Move DumpProcessWithoutCrash to base, so we can use it from net and content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
Mark Mentovai 2013/12/17 20:12:09 It would be awesome if this showed up as a copy fr
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_
6 #define BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_
7
8 #include "base/base_export.h"
9 #include "build/build_config.h"
10
11 namespace base {
12
13 namespace debug {
14
15 // Handler to silently dump the current process without crashing.
16 BASE_EXPORT void DumpWithoutCrashing();
17
18 // Sets a function that'll be invoked to dump the current process when
19 // DumpWithoutCrashing() is called.
20 #if defined(OS_POSIX)
21 BASE_EXPORT void SetDumpWithoutCrashingFunction(void (*function)());
22 #elif defined(OS_WIN)
23 BASE_EXPORT void SetDumpWithoutCrashingFunction(void (__cdecl *function)());
24 #endif
25
26 } // namespace debug
27
28 } // namespace base
29
30 #endif // BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698