| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 FontCacheMemoryDumpProvider_h | 5 #ifndef FontCacheMemoryDumpProvider_h |
| 6 #define FontCacheMemoryDumpProvider_h | 6 #define FontCacheMemoryDumpProvider_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "public/platform/WebMemoryDumpProvider.h" | 9 #include "public/platform/WebMemoryDumpProvider.h" |
| 10 #include "wtf/Allocator.h" |
| 10 | 11 |
| 11 namespace blink { | 12 namespace blink { |
| 12 | 13 |
| 13 class PLATFORM_EXPORT FontCacheMemoryDumpProvider final : public WebMemoryDumpPr
ovider { | 14 class PLATFORM_EXPORT FontCacheMemoryDumpProvider final : public WebMemoryDumpPr
ovider { |
| 15 USING_FAST_MALLOC(FontCacheMemoryDumpProvider); |
| 14 public: | 16 public: |
| 15 static FontCacheMemoryDumpProvider* instance(); | 17 static FontCacheMemoryDumpProvider* instance(); |
| 16 ~FontCacheMemoryDumpProvider() override { } | 18 ~FontCacheMemoryDumpProvider() override { } |
| 17 | 19 |
| 18 // WebMemoryDumpProvider implementation. | 20 // WebMemoryDumpProvider implementation. |
| 19 bool onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*) overrid
e; | 21 bool onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*) overrid
e; |
| 20 | 22 |
| 21 private: | 23 private: |
| 22 FontCacheMemoryDumpProvider() { } | 24 FontCacheMemoryDumpProvider() { } |
| 23 }; | 25 }; |
| 24 | 26 |
| 25 } // namespace blink | 27 } // namespace blink |
| 26 | 28 |
| 27 #endif // FontCacheMemoryDumpProvider_h | 29 #endif // FontCacheMemoryDumpProvider_h |
| OLD | NEW |