blob: e02901f2b61eab8285a9b3bd1e28cd976dbf4c3c (
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
|
// 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) OVERRIDE;
#endif
virtual bool GetCrashDumpLocation(base::FilePath* crash_dir) OVERRIDE;
#if defined(OS_POSIX)
virtual void SetDumpWithoutCrashingFunction(void (*function)()) OVERRIDE;
#endif
private:
DISALLOW_COPY_AND_ASSIGN(ChromeBreakpadClient);
};
} // namespace chrome
#endif // CHROME_APP_CHROME_BREAKPAD_CLIENT_H_
|