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

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

Issue 2288473002: Implement Dump-on-DCHECK (via a new LogSeverity). (Closed)
Patch Set: Migrate some tests to EXPECT_DCHECK_DEATH Created 4 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
« no previous file with comments | « no previous file | base/debug/dump_without_crashing.cc » ('j') | base/logging.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_ 5 #ifndef BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_
6 #define BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_ 6 #define BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_
7 7
8 #include "base/base_export.h" 8 #include "base/base_export.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 11
12 namespace base { 12 namespace base {
13 13
14 namespace debug { 14 namespace debug {
15 15
16 // Handler to silently dump the current process without crashing. 16 // Handler to silently dump the current process without crashing.
17 // Before calling this function, call SetDumpWithoutCrashingFunction to pass a 17 // Before calling this function, call SetDumpWithoutCrashingFunction to pass a
18 // function pointer, typically chrome!DumpProcessWithoutCrash. See example code 18 // function pointer, typically chrome!DumpProcessWithoutCrash. See example code
19 // in chrome_main.cc that does this for chrome.dll. 19 // in chrome_main.cc that does this for chrome.dll.
20 BASE_EXPORT void DumpWithoutCrashing(); 20 // Returns false if called before SetDumpWithoutCrashingFunction.
21 BASE_EXPORT bool DumpWithoutCrashing();
Wez 2016/12/19 23:57:46 Some new call-sites have been introduced lately wh
21 22
22 // Sets a function that'll be invoked to dump the current process when 23 // Sets a function that'll be invoked to dump the current process when
23 // DumpWithoutCrashing() is called. 24 // DumpWithoutCrashing() is called.
24 BASE_EXPORT void SetDumpWithoutCrashingFunction(void (CDECL *function)()); 25 BASE_EXPORT void SetDumpWithoutCrashingFunction(void (CDECL *function)());
25 26
26 } // namespace debug 27 } // namespace debug
27 28
28 } // namespace base 29 } // namespace base
29 30
30 #endif // BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_ 31 #endif // BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_
OLDNEW
« no previous file with comments | « no previous file | base/debug/dump_without_crashing.cc » ('j') | base/logging.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698