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 #if defined(OS_MACOSX) | 18 #if defined(OS_MACOSX) |
19 namespace mac { | 19 namespace mac { |
20 | 20 |
21 // Used to report the first Cocoa/Mac NSException and its backtrace. | 21 // Used to report the first Cocoa/Mac NSException and its backtrace. |
22 extern const char kFirstNSException[]; | 22 extern const char kFirstNSException[]; |
23 extern const char kFirstNSExceptionTrace[]; | 23 extern const char kFirstNSExceptionTrace[]; |
24 | 24 |
25 // Used to report the last Cocoa/Mac NSException and its backtrace. | 25 // Used to report the last Cocoa/Mac NSException and its backtrace. |
26 extern const char kLastNSException[]; | 26 extern const char kLastNSException[]; |
27 extern const char kLastNSExceptionTrace[]; | 27 extern const char kLastNSExceptionTrace[]; |
28 | 28 |
29 // Records the current NSException as it's being created. | 29 // Records the current NSException as its being created, and its backtrace. |
Nico
2013/03/20 23:08:19
"as it's being created" was right. The second "its
| |
30 extern const char kNSException[]; | 30 extern const char kNSException[]; |
31 extern const char kNSExceptionTrace[]; | |
31 | 32 |
32 // In the CrApplication, records information about the current event's | 33 // In the CrApplication, records information about the current event's |
33 // target-action. | 34 // target-action. |
34 extern const char kSendAction[]; | 35 extern const char kSendAction[]; |
35 | 36 |
36 // Records Cocoa zombie/used-after-freed objects that resulted in a | 37 // Records Cocoa zombie/used-after-freed objects that resulted in a |
37 // deliberate crash. | 38 // deliberate crash. |
38 extern const char kZombie[]; | 39 extern const char kZombie[]; |
39 extern const char kZombieTrace[]; | 40 extern const char kZombieTrace[]; |
40 | 41 |
41 } // namespace mac | 42 } // namespace mac |
42 #endif | 43 #endif |
43 | 44 |
44 } // namespace crash_keys | 45 } // namespace crash_keys |
45 | 46 |
46 #endif // CHROME_COMMON_CRASH_KEYS_H_ | 47 #endif // CHROME_COMMON_CRASH_KEYS_H_ |
OLD | NEW |