| 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 WebProcessMemoryDump_h |
| 6 #define WebProcessMemoryDump_h |
| 7 |
| 8 #include "WebNonCopyable.h" |
| 9 #include "WebString.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class WebMemoryAllocatorDump; |
| 14 |
| 15 // A container which holds all the dumps for the various allocators for a given |
| 16 // process. Embedders of WebMemoryDumpProvider are expected to populate a |
| 17 // WebProcessMemoryDump instance with the stats of their allocators. |
| 18 class BLINK_PLATFORM_EXPORT WebProcessMemoryDump : public WebNonCopyable { |
| 19 public: |
| 20 // Creates a new MemoryAllocatorDump with the given name and returns the |
| 21 // empty object back to the caller. |absoluteName| uniquely identifies the |
| 22 // dump within the scope of a ProcessMemoryDump. It is possible to express |
| 23 // nesting by means of a slash-separated path naming (e.g., |
| 24 // "allocator_name/arena_1/subheap_X"). |
| 25 virtual WebMemoryAllocatorDump* createMemoryAllocatorDump(const WebString& a
bsoluteName) |
| 26 { |
| 27 return nullptr; |
| 28 } |
| 29 }; |
| 30 |
| 31 } // namespace blink |
| 32 |
| 33 #endif // WebProcessMemoryDump_h |
| OLD | NEW |