Chromium Code Reviews| 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 WebMemoryDumpProvider_h | |
| 6 #define WebMemoryDumpProvider_h | |
| 7 | |
| 8 #include "WebNonCopyable.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 class WebProcessMemoryDump; | |
| 13 | |
| 14 // Base interface to be part of the memory tracing infrastructure. Blink classes can implement this | |
| 15 // interface and register themselves (see Platform::registerMemoryDumpProvider() ) to dump the stats | |
| 16 // of their allocators. | |
| 17 class BLINK_PLATFORM_EXPORT WebMemoryDumpProvider { | |
| 18 public: | |
| 19 // Called by the memory dump manager when generating memory dumps. Embedders are expected to | |
|
haraken
2015/04/30 01:45:49
memory dump manager => MemoryDumpManager
Primiano Tucci (use gerrit)
2015/04/30 09:07:43
Done.
| |
| 20 // populate the WebProcessMemoryDump* argument and return true on success or false if anything | |
| 21 // went wrong and the dump should be considered invalid. | |
| 22 virtual bool onMemoryDump(WebProcessMemoryDump*) = 0; | |
| 23 }; | |
| 24 | |
| 25 } // namespace blink | |
| 26 | |
| 27 #endif // WebMemoryDumpProvider_h | |
| OLD | NEW |