blob: 8b14f0946194c991ab0c9cd8207874bbb60df9f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
// 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_APP_CHROME_BREAKPAD_CLIENT_H_
#define CHROME_APP_CHROME_BREAKPAD_CLIENT_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "components/breakpad/breakpad_client.h"
namespace chrome {
class ChromeBreakpadClient : public breakpad::BreakpadClient {
public:
ChromeBreakpadClient();
virtual ~ChromeBreakpadClient();
// breakpad::BreakpadClient implementation.
#if defined(OS_WIN)
virtual bool GetAlternativeCrashDumpLocation(base::FilePath* crash_dir)
OVERRIDE;
virtual void GetProductNameAndVersion(const base::FilePath& exe_path,
base::string16* product_name,
base::string16* version,
base::string16* special_build,
base::string16* channel_name) OVERRIDE;
virtual bool ShouldShowRestartDialog(base::string16* title,
base::string16* message,
bool* is_rtl_locale) OVERRIDE;
virtual bool AboutToRestart() OVERRIDE;
virtual base::string16 GetCrashGUID() OVERRIDE;
virtual bool GetDeferredUploadsSupported(bool is_per_user_install) OVERRIDE;
virtual bool GetIsPerUserInstall(const base::FilePath& exe_path) OVERRIDE;
virtual bool GetShouldDumpLargerDumps(bool is_per_user_install) OVERRIDE;
virtual int GetResultCodeRespawnFailed() OVERRIDE;
#endif
#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS)
virtual void GetProductNameAndVersion(std::string* product_name,
std::string* version) OVERRIDE;
virtual base::FilePath GetReporterLogFilename() OVERRIDE;
#endif
virtual bool GetCrashDumpLocation(base::FilePath* crash_dir) OVERRIDE;
#if defined(OS_POSIX)
virtual void SetDumpWithoutCrashingFunction(void (*function)()) OVERRIDE;
#endif
virtual size_t RegisterCrashKeys() OVERRIDE;
virtual bool IsRunningUnattended() OVERRIDE;
#if defined(OS_WIN) || defined(OS_MACOSX)
virtual bool GetCollectStatsConsent() OVERRIDE;
#endif
#if defined(OS_ANDROID)
virtual int GetAndroidMinidumpDescriptor() OVERRIDE;
#endif
#if defined(OS_MACOSX)
virtual void InstallAdditionalFilters(BreakpadRef breakpad) OVERRIDE;
#endif
private:
DISALLOW_COPY_AND_ASSIGN(ChromeBreakpadClient);
};
} // namespace chrome
#endif // CHROME_APP_CHROME_BREAKPAD_CLIENT_H_
|