OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_SHELL_APP_SHELL_BREAKPAD_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_APP_SHELL_CRASH_REPORTER_CLIENT_H_ |
6 #define CONTENT_SHELL_APP_SHELL_BREAKPAD_CLIENT_H_ | 6 #define CONTENT_SHELL_APP_SHELL_CRASH_REPORTER_CLIENT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "components/crash/app/breakpad_client.h" | 9 #include "components/crash/app/crash_reporter_client.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 class ShellBreakpadClient : public breakpad::BreakpadClient { | 13 class ShellCrashReporterClient : public crash_reporter::CrashReporterClient { |
14 public: | 14 public: |
15 ShellBreakpadClient(); | 15 ShellCrashReporterClient(); |
16 virtual ~ShellBreakpadClient(); | 16 virtual ~ShellCrashReporterClient(); |
17 | 17 |
18 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
19 // Returns a textual description of the product type and version to include | 19 // Returns a textual description of the product type and version to include |
20 // in the crash report. | 20 // in the crash report. |
21 virtual void GetProductNameAndVersion(const base::FilePath& exe_path, | 21 virtual void GetProductNameAndVersion(const base::FilePath& exe_path, |
22 base::string16* product_name, | 22 base::string16* product_name, |
23 base::string16* version, | 23 base::string16* version, |
24 base::string16* special_build, | 24 base::string16* special_build, |
25 base::string16* channel_name) OVERRIDE; | 25 base::string16* channel_name) OVERRIDE; |
26 #endif | 26 #endif |
(...skipping 12 matching lines...) Expand all Loading... |
39 virtual bool GetCrashDumpLocation(base::FilePath* crash_dir) OVERRIDE; | 39 virtual bool GetCrashDumpLocation(base::FilePath* crash_dir) OVERRIDE; |
40 | 40 |
41 #if defined(OS_ANDROID) | 41 #if defined(OS_ANDROID) |
42 // Returns the descriptor key of the android minidump global descriptor. | 42 // Returns the descriptor key of the android minidump global descriptor. |
43 virtual int GetAndroidMinidumpDescriptor() OVERRIDE; | 43 virtual int GetAndroidMinidumpDescriptor() OVERRIDE; |
44 #endif | 44 #endif |
45 | 45 |
46 virtual bool EnableBreakpadForProcess( | 46 virtual bool EnableBreakpadForProcess( |
47 const std::string& process_type) OVERRIDE; | 47 const std::string& process_type) OVERRIDE; |
48 | 48 |
49 private: | 49 private: |
50 DISALLOW_COPY_AND_ASSIGN(ShellBreakpadClient); | 50 DISALLOW_COPY_AND_ASSIGN(ShellCrashReporterClient); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace content | 53 } // namespace content |
54 | 54 |
55 #endif // CONTENT_SHELL_APP_SHELL_BREAKPAD_CLIENT_H_ | 55 #endif // CONTENT_SHELL_APP_SHELL_CRASH_REPORTER_CLIENT_H_ |
OLD | NEW |