| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_BREAKPAD_MAC_H_ | 5 #ifndef CHROME_APP_BREAKPAD_MAC_H_ |
| 6 #define CHROME_APP_BREAKPAD_MAC_H_ | 6 #define CHROME_APP_BREAKPAD_MAC_H_ |
| 7 | 7 |
| 8 // This header defines the Chrome entry points for Breakpad integration. | 8 // This header defines the Chrome entry points for Breakpad integration. |
| 9 | 9 |
| 10 // Initializes Breakpad. | 10 // Initializes Breakpad. |
| 11 void InitCrashReporter(); | 11 void InitCrashReporter(); |
| 12 | 12 |
| 13 // Give Breakpad a chance to store information about the current process. |
| 14 // Extra information requires a parsed command line, so call this after |
| 15 // CommandLine::Init has been called. |
| 16 void InitCrashProcessInfo(); |
| 17 |
| 13 // Is Breakpad enabled? | 18 // Is Breakpad enabled? |
| 14 bool IsCrashReporterEnabled(); | 19 bool IsCrashReporterEnabled(); |
| 15 | 20 |
| 16 // Call on clean process shutdown. | 21 // Call on clean process shutdown. |
| 17 void DestructCrashReporter(); | 22 void DestructCrashReporter(); |
| 18 | 23 |
| 19 #if __OBJC__ | 24 #if __OBJC__ |
| 20 | 25 |
| 21 @class NSString; | 26 @class NSString; |
| 22 | 27 |
| 23 // Set and clear meta information for Minidump. | 28 // Set and clear meta information for Minidump. |
| 24 // IMPORTANT: On OS X, the key/value pairs are sent to the crash server | 29 // IMPORTANT: On OS X, the key/value pairs are sent to the crash server |
| 25 // out of bounds and not recorded on disk in the minidump, this means | 30 // out of bounds and not recorded on disk in the minidump, this means |
| 26 // that if you look at the minidump file locally you won't see them! | 31 // that if you look at the minidump file locally you won't see them! |
| 27 void SetCrashKeyValue(NSString* key, NSString* value); | 32 void SetCrashKeyValue(NSString* key, NSString* value); |
| 28 void ClearCrashKeyValue(NSString* key); | 33 void ClearCrashKeyValue(NSString* key); |
| 29 | 34 |
| 30 #endif // __OBJC__ | 35 #endif // __OBJC__ |
| 31 | 36 |
| 32 #endif // CHROME_APP_BREAKPAD_MAC_H_ | 37 #endif // CHROME_APP_BREAKPAD_MAC_H_ |
| OLD | NEW |