summaryrefslogtreecommitdiffstats
path: root/chrome/common/dump_without_crashing.h
blob: dd5299b8eecaf08287b816632790af48a097993e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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(OS_POSIX)
// 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_