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

Unified Diff: chrome/common/dump_without_crashing.h

Issue 12090096: Split DumpWithoutCrashing() into a separate file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/dump_without_crashing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/dump_without_crashing.h
diff --git a/chrome/common/dump_without_crashing.h b/chrome/common/dump_without_crashing.h
new file mode 100644
index 0000000000000000000000000000000000000000..fdf6e07989dbc445b68df8705c20f0f8b2d2cb36
--- /dev/null
+++ b/chrome/common/dump_without_crashing.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_DUMP_WITHOUT_CRASHING_H_
+#define CHROME_COMMON_DUMP_WITHOUT_CRASHING_H_
+
+#include "build/build_config.h"
+
+namespace logging {
+
+// Handler to silently dump the current process without crashing.
+void DumpWithoutCrashing();
+
+#if defined(USE_LINUX_BREAKPAD) || defined(OS_MACOSX)
+// Sets a function that'll be invoked to dump the current process when
+// DumpWithoutCrashing() is called.
+void SetDumpWithoutCrashingFunction(void (*function)());
+#endif
+
+} // namespace logging
+
+#endif // CHROME_COMMON_DUMP_WITHOUT_CRASHING_H_
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/dump_without_crashing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698