| Index: content/renderer/memory_benchmarking_extension.h
|
| diff --git a/content/renderer/memory_benchmarking_extension.h b/content/renderer/memory_benchmarking_extension.h
|
| index 267a9301411a29ed49c920010c4acb8ba6043d37..27439e818cf2a0250d33c3498f6d23b4df135bda 100644
|
| --- a/content/renderer/memory_benchmarking_extension.h
|
| +++ b/content/renderer/memory_benchmarking_extension.h
|
| @@ -5,13 +5,39 @@
|
| #ifndef CONTENT_RENDERER_MEMORY_BENCHMARKING_EXTENSION_H_
|
| #define CONTENT_RENDERER_MEMORY_BENCHMARKING_EXTENSION_H_
|
|
|
| -#include "v8/include/v8.h"
|
| +#include "base/basictypes.h"
|
| +#include "gin/wrappable.h"
|
| +
|
| +namespace blink {
|
| +class WebFrame;
|
| +}
|
| +
|
| +namespace gin {
|
| +class Arguments;
|
| +}
|
|
|
| namespace content {
|
|
|
| -class MemoryBenchmarkingExtension {
|
| +class MemoryBenchmarkingExtension
|
| + : public gin::Wrappable<MemoryBenchmarkingExtension> {
|
| public:
|
| - static v8::Extension* Get();
|
| + static gin::WrapperInfo kWrapperInfo;
|
| +
|
| + static void Install(blink::WebFrame* frame);
|
| +
|
| + private:
|
| + MemoryBenchmarkingExtension();
|
| + virtual ~MemoryBenchmarkingExtension();
|
| +
|
| + // gin::Wrappable.
|
| + virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
|
| + v8::Isolate* isolate) OVERRIDE;
|
| +
|
| + bool IsHeapProfilerRunning();
|
| +
|
| + void HeapProfilerDump(gin::Arguments* args);
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(MemoryBenchmarkingExtension);
|
| };
|
|
|
| } // namespace content
|
|
|