summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/extensions/v8/heap_profiler_extension.cc3
-rw-r--r--webkit/extensions/v8/heap_profiler_extension.h13
2 files changed, 9 insertions, 7 deletions
diff --git a/webkit/extensions/v8/heap_profiler_extension.cc b/webkit/extensions/v8/heap_profiler_extension.cc
index ab20380..4f36df6 100644
--- a/webkit/extensions/v8/heap_profiler_extension.cc
+++ b/webkit/extensions/v8/heap_profiler_extension.cc
@@ -1,10 +1,11 @@
-// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "webkit/extensions/v8/heap_profiler_extension.h"
#include "base/basictypes.h"
+#include "v8/include/v8.h"
#if defined(USE_TCMALLOC) && !defined(OS_WIN)
#include "third_party/tcmalloc/chromium/src/google/heap-profiler.h"
diff --git a/webkit/extensions/v8/heap_profiler_extension.h b/webkit/extensions/v8/heap_profiler_extension.h
index 8bdbf90..9d3abb39 100644
--- a/webkit/extensions/v8/heap_profiler_extension.h
+++ b/webkit/extensions/v8/heap_profiler_extension.h
@@ -1,18 +1,19 @@
-// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// HeapProfilerExtension is a V8 extension to expose a JS function for
-// dumping native heap profiles. This should only be used for
-// debugging.
-
#ifndef WEBKIT_EXTENSIONS_V8_HEAP_PROFILER_EXTENSION_H_
#define WEBKIT_EXTENSIONS_V8_HEAP_PROFILER_EXTENSION_H_
+#pragma once
-#include "v8/include/v8.h"
+namespace v8 {
+class Extension;
+}
namespace extensions_v8 {
+// HeapProfilerExtension is a V8 extension to expose a JS function for
+// dumping native heap profiles. This should only be used for debugging.
class HeapProfilerExtension {
public:
static v8::Extension* Get();