| 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 |
| 15 // can implement this interface and register themselves (see |
| 16 // Platform::registerMemoryDumpProvider()) to dump stats for their allocators. |
| 17 class BLINK_PLATFORM_EXPORT WebMemoryDumpProvider { |
| 18 public: |
| 19 // Called by the MemoryDumpManager when generating memory dumps. Embedders |
| 20 // are expected to populate the WebProcessMemoryDump* argument and return |
| 21 // true on success or false if anything went wrong and the dump should be |
| 22 // considered invalid. |
| 23 virtual bool onMemoryDump(WebProcessMemoryDump*) = 0; |
| 24 }; |
| 25 |
| 26 } // namespace blink |
| 27 |
| 28 #endif // WebMemoryDumpProvider_h |
| OLD | NEW |