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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/memory_benchmarking_extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 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 CONTENT_RENDERER_MEMORY_BENCHMARKING_EXTENSION_H_ 5 #ifndef CONTENT_RENDERER_MEMORY_BENCHMARKING_EXTENSION_H_
6 #define CONTENT_RENDERER_MEMORY_BENCHMARKING_EXTENSION_H_ 6 #define CONTENT_RENDERER_MEMORY_BENCHMARKING_EXTENSION_H_
7 7
8 #include "v8/include/v8.h" 8 #include "base/basictypes.h"
9 #include "gin/wrappable.h"
10
11 namespace blink {
12 class WebFrame;
13 }
14
15 namespace gin {
16 class Arguments;
17 }
9 18
10 namespace content { 19 namespace content {
11 20
12 class MemoryBenchmarkingExtension { 21 class MemoryBenchmarkingExtension
22 : public gin::Wrappable<MemoryBenchmarkingExtension> {
13 public: 23 public:
14 static v8::Extension* Get(); 24 static gin::WrapperInfo kWrapperInfo;
25
26 static void Install(blink::WebFrame* frame);
27
28 private:
29 MemoryBenchmarkingExtension();
30 virtual ~MemoryBenchmarkingExtension();
31
32 // gin::Wrappable.
33 virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
34 v8::Isolate* isolate) OVERRIDE;
35
36 bool IsHeapProfilerRunning();
37
38 void HeapProfilerDump(gin::Arguments* args);
39
40 DISALLOW_COPY_AND_ASSIGN(MemoryBenchmarkingExtension);
15 }; 41 };
16 42
17 } // namespace content 43 } // namespace content
18 44
19 #endif // CONTENT_RENDERER_MEMORY_BENCHMARKING_EXTENSION_H_ 45 #endif // CONTENT_RENDERER_MEMORY_BENCHMARKING_EXTENSION_H_
OLDNEW
« 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