| 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" |
| 9 |
| 8 namespace crash_keys { | 10 namespace crash_keys { |
| 9 | 11 |
| 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. |
| 14 size_t RegisterChromeCrashKeys(); |
| 15 |
| 10 // Crash Key Name Constants //////////////////////////////////////////////////// | 16 // Crash Key Name Constants //////////////////////////////////////////////////// |
| 11 | 17 |
| 12 namespace mac { | 18 namespace mac { |
| 13 | 19 |
| 14 // Used to report the first Cocoa/Mac NSException and its backtrace. | 20 // Used to report the first Cocoa/Mac NSException and its backtrace. |
| 15 extern const char kFirstNSException[]; | 21 extern const char kFirstNSException[]; |
| 16 extern const char kFirstNSExceptionTrace[]; | 22 extern const char kFirstNSExceptionTrace[]; |
| 17 | 23 |
| 18 // Used to report the last Cocoa/Mac NSException and its backtrace. | 24 // Used to report the last Cocoa/Mac NSException and its backtrace. |
| 19 extern const char kLastNSException[]; | 25 extern const char kLastNSException[]; |
| 20 extern const char kLastNSExceptionTrace[]; | 26 extern const char kLastNSExceptionTrace[]; |
| 21 | 27 |
| 22 // Records the current NSException as it's being created. | 28 // Records the current NSException as it's being created. |
| 23 extern const char kNSException[]; | 29 extern const char kNSException[]; |
| 24 | 30 |
| 25 // In the CrApplication, records information about the current event's | 31 // In the CrApplication, records information about the current event's |
| 26 // target-action. | 32 // target-action. |
| 27 extern const char kSendAction[]; | 33 extern const char kSendAction[]; |
| 28 | 34 |
| 29 // Records Cocoa zombie/used-after-freed objects that resulted in a | 35 // Records Cocoa zombie/used-after-freed objects that resulted in a |
| 30 // deliberate crash. | 36 // deliberate crash. |
| 31 extern const char kZombie[]; | 37 extern const char kZombie[]; |
| 32 extern const char kZombieTrace[]; | 38 extern const char kZombieTrace[]; |
| 33 | 39 |
| 34 } // namespace mac | 40 } // namespace mac |
| 35 | 41 |
| 36 } // namespace crash_keys | 42 } // namespace crash_keys |
| 37 | 43 |
| 38 #endif // CHROME_COMMON_CRASH_KEYS_H_ | 44 #endif // CHROME_COMMON_CRASH_KEYS_H_ |
| OLD | NEW |