Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2659)

Side by Side Diff: chrome/common/crash_keys.h

Issue 12611026: [Mac] Record backtrace with nsexception logging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gramma Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chrome_browser_application_mac.mm ('k') | chrome/common/crash_keys.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 it is being created, and its backtrace.
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_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_application_mac.mm ('k') | chrome/common/crash_keys.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698