Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1570)

Unified Diff: content/renderer/memory_benchmarking_extension.h

Issue 145033004: Convert MemoryBenchmarkingExtension to gin::Wrappable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/memory_benchmarking_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | content/renderer/memory_benchmarking_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698