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

Side by Side Diff: chrome/app/breakpad_mac.h

Issue 7849011: Refactor Mac crash key reporting - move to base/mac/crash_logging.{h,mm} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 // This header defines the Chrome entry points for Breakpad integration. 9 // This header defines the Chrome entry points for Breakpad integration.
10 10
11 // Initializes Breakpad. 11 // Initializes Breakpad.
12 void InitCrashReporter(); 12 void InitCrashReporter();
13 13
14 // Give Breakpad a chance to store information about the current process. 14 // Give Breakpad a chance to store information about the current process.
15 // Extra information requires a parsed command line, so call this after 15 // Extra information requires a parsed command line, so call this after
16 // CommandLine::Init has been called. 16 // CommandLine::Init has been called.
17 void InitCrashProcessInfo(); 17 void InitCrashProcessInfo();
18 18
19 // Is Breakpad enabled? 19 // Is Breakpad enabled?
20 bool IsCrashReporterEnabled(); 20 bool IsCrashReporterEnabled();
21 21
22 // Call on clean process shutdown. 22 // Call on clean process shutdown.
23 void DestructCrashReporter(); 23 void DestructCrashReporter();
24 24
25 #ifdef __OBJC__
26
27 #include "base/memory/scoped_nsobject.h"
28
29 @class NSString;
30
31 // Set and clear meta information for Minidump.
32 // IMPORTANT: On OS X, the key/value pairs are sent to the crash server
33 // out of bounds and not recorded on disk in the minidump, this means
34 // that if you look at the minidump file locally you won't see them!
35 void SetCrashKeyValue(NSString* key, NSString* value);
36 void ClearCrashKeyValue(NSString* key);
37
38 class ScopedCrashKey {
39 public:
40 ScopedCrashKey(NSString* key, NSString* value);
41 ~ScopedCrashKey();
42
43 private:
44 scoped_nsobject<NSString> crash_key_;
45 };
46
47 #endif // __OBJC__
48
49 #endif // CHROME_APP_BREAKPAD_MAC_H_ 25 #endif // CHROME_APP_BREAKPAD_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698