summaryrefslogtreecommitdiffstats
path: root/base/memory_debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/memory_debug.h')
-rw-r--r--base/memory_debug.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/base/memory_debug.h b/base/memory_debug.h
index c1283dc..acac831 100644
--- a/base/memory_debug.h
+++ b/base/memory_debug.h
@@ -32,11 +32,14 @@
// a supported memory tool (currently, only Purify)
#ifndef BASE_MEMORY_DEBUG_H_
+#define BASE_MEMORY_DEBUG_H_
+
+#include "base/basictypes.h"
namespace base {
class MemoryDebug {
-public:
+ public:
// Since MIU messages are a lot of data, and we don't always want this data,
// we have a global switch. If disabled, *MemoryInUse are no-ops.
static void SetMemoryInUseEnabled(bool enabled);
@@ -57,10 +60,12 @@ public:
// or UMCs.
static void MarkAsInitialized(void* addr, size_t size);
-private:
+ private:
static bool memory_in_use_;
+
+ DISALLOW_IMPLICIT_CONSTRUCTORS(MemoryDebug);
};
-} // namespace base
+} // namespace base
-#endif \ No newline at end of file
+#endif // BASE_MEMORY_DEBUG_H_