| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_EXTENSIONS_V8_HEAP_PROFILER_EXTENSION_H_ | 5 #ifndef WEBKIT_EXTENSIONS_V8_HEAP_PROFILER_EXTENSION_H_ |
| 6 #define WEBKIT_EXTENSIONS_V8_HEAP_PROFILER_EXTENSION_H_ | 6 #define WEBKIT_EXTENSIONS_V8_HEAP_PROFILER_EXTENSION_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "webkit/extensions/webkit_extensions_export.h" |
| 10 |
| 9 namespace v8 { | 11 namespace v8 { |
| 10 class Extension; | 12 class Extension; |
| 11 } | 13 } |
| 12 | 14 |
| 13 namespace extensions_v8 { | 15 namespace extensions_v8 { |
| 14 | 16 |
| 15 // HeapProfilerExtension is a V8 extension to expose a JS function for | 17 // HeapProfilerExtension is a V8 extension to expose a JS function for |
| 16 // dumping native heap profiles. This should only be used for debugging. | 18 // dumping native heap profiles. This should only be used for debugging. |
| 17 class HeapProfilerExtension { | 19 class HeapProfilerExtension { |
| 18 public: | 20 public: |
| 19 static v8::Extension* Get(); | 21 WEBKIT_EXTENSIONS_EXPORT static v8::Extension* Get(); |
| 20 }; | 22 }; |
| 21 | 23 |
| 22 } // namespace extensions_v8 | 24 } // namespace extensions_v8 |
| 23 | 25 |
| 24 #endif // WEBKIT_EXTENSIONS_V8_HEAP_PROFILER_EXTENSION_H_ | 26 #endif // WEBKIT_EXTENSIONS_V8_HEAP_PROFILER_EXTENSION_H_ |
| OLD | NEW |