OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 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. | |
4 | |
5 #ifndef GIN_PUBLIC_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_ | |
Primiano Tucci (use gerrit)
2015/04/17 19:10:31
Fix this (remove PUBLIC)
| |
6 #define GIN_PUBLIC_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_ | |
7 | |
8 #include <istream> | |
Primiano Tucci (use gerrit)
2015/04/17 19:10:31
I don't think you need this
| |
9 | |
10 #include "base/memory/scoped_ptr.h" | |
Primiano Tucci (use gerrit)
2015/04/17 19:10:31
don't need this either
| |
11 #include "base/trace_event/memory_dump_manager.h" | |
Primiano Tucci (use gerrit)
2015/04/17 19:10:31
Neither this.
| |
12 #include "base/trace_event/memory_dump_provider.h" | |
13 #include "gin/gin_export.h" | |
14 | |
15 namespace gin { | |
16 | |
17 class IsolateHolder; | |
18 | |
19 // Dump provider which collects process-wide memory stats. | |
Primiano Tucci (use gerrit)
2015/04/17 19:10:31
I'd probably word this as:
// Memory dump provider
| |
20 class V8IsolateMemoryDumpProvider | |
21 : public base::trace_event::MemoryDumpProvider { | |
22 public: | |
23 V8IsolateMemoryDumpProvider(IsolateHolder* isolate_holder); | |
24 ~V8IsolateMemoryDumpProvider() override; | |
25 | |
26 // MemoryDumpProvider implementation. | |
27 bool DumpInto(base::trace_event::ProcessMemoryDump* pmd) override; | |
28 const char* GetFriendlyName() const override; | |
29 | |
30 private: | |
31 // This object is not owned by the IsolateHolder whose reference | |
32 // is stored in this member. | |
33 IsolateHolder* isolate_holder_; | |
Primiano Tucci (use gerrit)
2015/04/17 19:10:31
It is sufficient to say:
IsolateHolder* isolate_ho
| |
34 | |
35 DISALLOW_COPY_AND_ASSIGN(V8IsolateMemoryDumpProvider); | |
36 }; | |
37 | |
38 } // namespace gin | |
39 | |
40 #endif // GIN_PUBLIC_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_ | |
OLD | NEW |