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

Side by Side Diff: base/debug_util.h

Issue 118162: Reduce header dependencies in base/ (Closed)
Patch Set: Created 11 years, 6 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
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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 // This is a cross platform interface for helper functions related to debuggers. 5 // This is a cross platform interface for helper functions related to debuggers.
6 // You should use this to test if you're running under a debugger, and if you 6 // You should use this to test if you're running under a debugger, and if you
7 // would like to yield (breakpoint) into the debugger. 7 // would like to yield (breakpoint) into the debugger.
8 8
9 #ifndef BASE_DEBUG_UTIL_H_ 9 #ifndef BASE_DEBUG_UTIL_H_
10 #define BASE_DEBUG_UTIL_H_ 10 #define BASE_DEBUG_UTIL_H_
11 11
12 #include <iostream> 12 #include <iosfwd>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 16
17 // A stacktrace can be helpful in debugging. For example, you can include a 17 // A stacktrace can be helpful in debugging. For example, you can include a
18 // stacktrace member in a object (probably around #ifndef NDEBUG) so that you 18 // stacktrace member in a object (probably around #ifndef NDEBUG) so that you
19 // can later see where the given object was created from. 19 // can later see where the given object was created from.
20 class StackTrace { 20 class StackTrace {
21 public: 21 public:
22 // Create a stacktrace from the current location 22 // Create a stacktrace from the current location
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // process a Chrome crash. This translates into a long wait till the process 61 // process a Chrome crash. This translates into a long wait till the process
62 // actually dies. 62 // actually dies.
63 // This method disables OS Crash reporting entireley. 63 // This method disables OS Crash reporting entireley.
64 // TODO(playmobil): Remove this when we have Breakpad integration enabled - 64 // TODO(playmobil): Remove this when we have Breakpad integration enabled -
65 // see http://crbug.com/7652 65 // see http://crbug.com/7652
66 static void DisableOSCrashDumps(); 66 static void DisableOSCrashDumps();
67 #endif // defined(OS_MACOSX) 67 #endif // defined(OS_MACOSX)
68 }; 68 };
69 69
70 #endif // BASE_DEBUG_UTIL_H_ 70 #endif // BASE_DEBUG_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698