| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_COMMON_CRASH_KEYS_H_ | 5 #ifndef CHROME_COMMON_CRASH_KEYS_H_ |
| 6 #define CHROME_COMMON_CRASH_KEYS_H_ | 6 #define CHROME_COMMON_CRASH_KEYS_H_ |
| 7 | 7 |
| 8 #include "base/debug/crash_logging.h" | 8 #include "base/debug/crash_logging.h" |
| 9 | 9 |
| 10 namespace crash_keys { | 10 namespace crash_keys { |
| 11 | 11 |
| 12 // Registers all of the potential crash keys that can be sent to the crash | 12 // Registers all of the potential crash keys that can be sent to the crash |
| 13 // reporting server. Returns the size of the union of all keys. | 13 // reporting server. Returns the size of the union of all keys. |
| 14 size_t RegisterChromeCrashKeys(); | 14 size_t RegisterChromeCrashKeys(); |
| 15 | 15 |
| 16 // Crash Key Name Constants //////////////////////////////////////////////////// | 16 // Crash Key Name Constants //////////////////////////////////////////////////// |
| 17 | 17 |
| 18 // The URL of the active tab. | 18 // The URL of the active tab. |
| 19 extern const char kActiveURL[]; | 19 extern const char kActiveURL[]; |
| 20 | 20 |
| 21 // GPU information. |
| 22 #if !defined(OS_ANDROID) |
| 23 extern const char kGPUVendorID[]; |
| 24 extern const char kGPUDeviceID[]; |
| 25 #endif |
| 26 extern const char kGPUDriverVersion[]; |
| 27 extern const char kGPUPixelShaderVersion[]; |
| 28 extern const char kGPUVertexShaderVersion[]; |
| 29 #if defined(OS_LINUX) |
| 30 extern const char kGPUVendor[]; |
| 31 extern const char kGPURenderer[]; |
| 32 #elif defined(OS_MACOSX) |
| 33 extern const char kGPUGLVersion[]; |
| 34 #endif |
| 35 |
| 21 #if defined(OS_MACOSX) | 36 #if defined(OS_MACOSX) |
| 22 namespace mac { | 37 namespace mac { |
| 23 | 38 |
| 24 // Used to report the first Cocoa/Mac NSException and its backtrace. | 39 // Used to report the first Cocoa/Mac NSException and its backtrace. |
| 25 extern const char kFirstNSException[]; | 40 extern const char kFirstNSException[]; |
| 26 extern const char kFirstNSExceptionTrace[]; | 41 extern const char kFirstNSExceptionTrace[]; |
| 27 | 42 |
| 28 // Used to report the last Cocoa/Mac NSException and its backtrace. | 43 // Used to report the last Cocoa/Mac NSException and its backtrace. |
| 29 extern const char kLastNSException[]; | 44 extern const char kLastNSException[]; |
| 30 extern const char kLastNSExceptionTrace[]; | 45 extern const char kLastNSExceptionTrace[]; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 41 // deliberate crash. | 56 // deliberate crash. |
| 42 extern const char kZombie[]; | 57 extern const char kZombie[]; |
| 43 extern const char kZombieTrace[]; | 58 extern const char kZombieTrace[]; |
| 44 | 59 |
| 45 } // namespace mac | 60 } // namespace mac |
| 46 #endif | 61 #endif |
| 47 | 62 |
| 48 } // namespace crash_keys | 63 } // namespace crash_keys |
| 49 | 64 |
| 50 #endif // CHROME_COMMON_CRASH_KEYS_H_ | 65 #endif // CHROME_COMMON_CRASH_KEYS_H_ |
| OLD | NEW |