| 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 CHROME_APP_CHROME_BREAKPAD_CLIENT_H_ | 5 #ifndef CHROME_APP_CHROME_BREAKPAD_CLIENT_H_ |
| 6 #define CHROME_APP_CHROME_BREAKPAD_CLIENT_H_ | 6 #define CHROME_APP_CHROME_BREAKPAD_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "components/breakpad/breakpad_client.h" | 10 #include "components/breakpad/breakpad_client.h" |
| 11 | 11 |
| 12 namespace chrome { | 12 namespace chrome { |
| 13 | 13 |
| 14 class ChromeBreakpadClient : public breakpad::BreakpadClient { | 14 class ChromeBreakpadClient : public breakpad::BreakpadClient { |
| 15 public: | 15 public: |
| 16 ChromeBreakpadClient(); | 16 ChromeBreakpadClient(); |
| 17 virtual ~ChromeBreakpadClient(); | 17 virtual ~ChromeBreakpadClient(); |
| 18 | 18 |
| 19 // breakpad::BreakpadClient implementation. | 19 // breakpad::BreakpadClient implementation. |
| 20 #if defined(OS_WIN) | 20 #if defined(OS_WIN) |
| 21 virtual bool GetAlternativeCrashDumpLocation(base::FilePath* crash_dir) | 21 virtual bool GetAlternativeCrashDumpLocation(base::FilePath* crash_dir) |
| 22 OVERRIDE; | 22 OVERRIDE; |
| 23 virtual void GetProductNameAndVersion(const base::FilePath& exe_path, | 23 virtual void GetProductNameAndVersion(const base::FilePath& exe_path, |
| 24 base::string16* product_name, | 24 base::string16* product_name, |
| 25 base::string16* version, | 25 base::string16* version, |
| 26 base::string16* special_build) OVERRIDE; | 26 base::string16* special_build) OVERRIDE; |
| 27 virtual bool ShouldShowRestartDialog(base::string16* title, |
| 28 base::string16* message, |
| 29 bool* is_rtl_locale) OVERRIDE; |
| 30 virtual bool AboutToRestart() OVERRIDE; |
| 27 #endif | 31 #endif |
| 28 | 32 |
| 29 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS) | 33 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS) |
| 30 virtual void GetProductNameAndVersion(std::string* product_name, | 34 virtual void GetProductNameAndVersion(std::string* product_name, |
| 31 std::string* version) OVERRIDE; | 35 std::string* version) OVERRIDE; |
| 32 #endif | 36 #endif |
| 33 | 37 |
| 34 virtual bool GetCrashDumpLocation(base::FilePath* crash_dir) OVERRIDE; | 38 virtual bool GetCrashDumpLocation(base::FilePath* crash_dir) OVERRIDE; |
| 35 | 39 |
| 36 #if defined(OS_POSIX) | 40 #if defined(OS_POSIX) |
| 37 virtual void SetDumpWithoutCrashingFunction(void (*function)()) OVERRIDE; | 41 virtual void SetDumpWithoutCrashingFunction(void (*function)()) OVERRIDE; |
| 38 #endif | 42 #endif |
| 39 | 43 |
| 40 virtual size_t RegisterCrashKeys() OVERRIDE; | 44 virtual size_t RegisterCrashKeys() OVERRIDE; |
| 41 | 45 |
| 46 virtual bool IsRunningUnattended() OVERRIDE; |
| 47 |
| 42 private: | 48 private: |
| 43 DISALLOW_COPY_AND_ASSIGN(ChromeBreakpadClient); | 49 DISALLOW_COPY_AND_ASSIGN(ChromeBreakpadClient); |
| 44 }; | 50 }; |
| 45 | 51 |
| 46 } // namespace chrome | 52 } // namespace chrome |
| 47 | 53 |
| 48 #endif // CHROME_APP_CHROME_BREAKPAD_CLIENT_H_ | 54 #endif // CHROME_APP_CHROME_BREAKPAD_CLIENT_H_ |
| OLD | NEW |