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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/compiler_specific.h ('k') | base/debug/dump_without_crashing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/dump_without_crashing.h
diff --git a/chrome/common/dump_without_crashing.h b/base/debug/dump_without_crashing.h
similarity index 41%
rename from chrome/common/dump_without_crashing.h
rename to base/debug/dump_without_crashing.h
index dd5299b8eecaf08287b816632790af48a097993e..c46f446eee18127739129222daf7e67a2100eab5 100644
--- a/chrome/common/dump_without_crashing.h
+++ b/base/debug/dump_without_crashing.h
@@ -1,23 +1,27 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Copyright 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_
+#ifndef BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_
+#define BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_
+#include "base/base_export.h"
+#include "base/compiler_specific.h"
#include "build/build_config.h"
-namespace logging {
+namespace base {
+
+namespace debug {
// Handler to silently dump the current process without crashing.
-void DumpWithoutCrashing();
+BASE_EXPORT void DumpWithoutCrashing();
-#if defined(OS_POSIX)
// Sets a function that'll be invoked to dump the current process when
// DumpWithoutCrashing() is called.
-void SetDumpWithoutCrashingFunction(void (*function)());
-#endif
+BASE_EXPORT void SetDumpWithoutCrashingFunction(void (CDECL *function)());
+
+} // namespace debug
-} // namespace logging
+} // namespace base
-#endif // CHROME_COMMON_DUMP_WITHOUT_CRASHING_H_
+#endif // BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_
« 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