Roll WebRTC 9189:9205, Libjingle 9186:9198
[chromium-blink-merge.git] / content / renderer / memory_benchmarking_extension.h
blobafbaf24b868f84805197bc442106477f372c7cc6
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_MEMORY_BENCHMARKING_EXTENSION_H_
6 #define CONTENT_RENDERER_MEMORY_BENCHMARKING_EXTENSION_H_
8 #include "base/basictypes.h"
9 #include "gin/wrappable.h"
11 namespace blink {
12 class WebFrame;
15 namespace gin {
16 class Arguments;
19 namespace content {
21 class MemoryBenchmarkingExtension
22 : public gin::Wrappable<MemoryBenchmarkingExtension> {
23 public:
24 static gin::WrapperInfo kWrapperInfo;
26 static void Install(blink::WebFrame* frame);
28 private:
29 MemoryBenchmarkingExtension();
30 ~MemoryBenchmarkingExtension() override;
32 // gin::Wrappable.
33 gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
34 v8::Isolate* isolate) override;
36 bool IsHeapProfilerRunning();
38 void HeapProfilerDump(gin::Arguments* args);
40 DISALLOW_COPY_AND_ASSIGN(MemoryBenchmarkingExtension);
43 } // namespace content
45 #endif // CONTENT_RENDERER_MEMORY_BENCHMARKING_EXTENSION_H_