Chromium Code Reviews| 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..3b9ec31f192738da96f955240713a808e138362e |
| --- /dev/null |
| +++ b/chrome/common/dump_without_crashing.h |
| @@ -0,0 +1,21 @@ |
| +// 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__ |
|
Lei Zhang
2013/01/31 21:56:22
nit: one underscore at the end. I realize logging_
Mark Seaborn
2013/01/31 23:09:26
Done.
|
| +#define CHROME_COMMON_DUMP_WITHOUT_CRASHING_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_ |