summaryrefslogtreecommitdiffstats
path: root/webkit/extensions
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-04 02:04:57 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-04 02:04:57 +0000
commit2f449fb2d5b90fe263e7d80c9aa81845982ddbdb (patch)
tree43478466715bb4782b37e8b44d314c23af566078 /webkit/extensions
parentcb5199b4febc8e49b8fb4d858cbcb9fbb0d0eb25 (diff)
downloadchromium_src-2f449fb2d5b90fe263e7d80c9aa81845982ddbdb.zip
chromium_src-2f449fb2d5b90fe263e7d80c9aa81845982ddbdb.tar.gz
chromium_src-2f449fb2d5b90fe263e7d80c9aa81845982ddbdb.tar.bz2
webkit/extensions/v8: Forward declare v8::Extension in HeapProfilerExtension header.
R=willchan@chromium.org Review URL: http://codereview.chromium.org/7800019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99585 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/extensions')
-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();