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

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
« no previous file with comments | « base/compiler_specific.h ('k') | base/debug/dump_without_crashing.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 (c) 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 CHROME_COMMON_DUMP_WITHOUT_CRASHING_H_ 5 #ifndef BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_
6 #define CHROME_COMMON_DUMP_WITHOUT_CRASHING_H_ 6 #define BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_
7 7
8 #include "base/base_export.h"
9 #include "base/compiler_specific.h"
8 #include "build/build_config.h" 10 #include "build/build_config.h"
9 11
10 namespace logging { 12 namespace base {
13
14 namespace debug {
11 15
12 // Handler to silently dump the current process without crashing. 16 // Handler to silently dump the current process without crashing.
13 void DumpWithoutCrashing(); 17 BASE_EXPORT void DumpWithoutCrashing();
14 18
15 #if defined(OS_POSIX)
16 // Sets a function that'll be invoked to dump the current process when 19 // Sets a function that'll be invoked to dump the current process when
17 // DumpWithoutCrashing() is called. 20 // DumpWithoutCrashing() is called.
18 void SetDumpWithoutCrashingFunction(void (*function)()); 21 BASE_EXPORT void SetDumpWithoutCrashingFunction(void (CDECL *function)());
19 #endif
20 22
21 } // namespace logging 23 } // namespace debug
22 24
23 #endif // CHROME_COMMON_DUMP_WITHOUT_CRASHING_H_ 25 } // namespace base
26
27 #endif // BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_
OLDNEW
« no previous file with comments | « base/compiler_specific.h ('k') | base/debug/dump_without_crashing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698