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 PartitionAllocMemoryDumpProvider_h | 5 #ifndef WebCacheMemoryDumpProvider_h |
6 #define PartitionAllocMemoryDumpProvider_h | 6 #define WebCacheMemoryDumpProvider_h |
7 | 7 |
8 #include "public/platform/WebCommon.h" | 8 #include "public/platform/WebCommon.h" |
9 #include "public/platform/WebMemoryDumpProvider.h" | 9 #include "public/platform/WebMemoryDumpProvider.h" |
| 10 #include "wtf/Noncopyable.h" |
10 | 11 |
11 namespace blink { | 12 namespace blink { |
12 | 13 |
13 class BLINK_PLATFORM_EXPORT PartitionAllocMemoryDumpProvider final : public WebM
emoryDumpProvider { | 14 class WebCacheMemoryDumpProvider final : public WebMemoryDumpProvider { |
| 15 WTF_MAKE_NONCOPYABLE(WebCacheMemoryDumpProvider); |
| 16 |
14 public: | 17 public: |
15 static PartitionAllocMemoryDumpProvider* instance(); | 18 static void initialize(); |
16 ~PartitionAllocMemoryDumpProvider() override; | 19 ~WebCacheMemoryDumpProvider() override; |
17 | 20 |
18 // WebMemoryDumpProvider implementation. | 21 // WebMemoryDumpProvider implementation. |
19 bool onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*) overrid
e; | 22 bool onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*) overrid
e; |
20 | 23 |
21 private: | 24 private: |
22 PartitionAllocMemoryDumpProvider(); | 25 WebCacheMemoryDumpProvider(); |
23 }; | 26 }; |
24 | 27 |
25 } // namespace blink | 28 } // namespace blink |
26 | 29 |
27 #endif // PartitionAllocMemoryDumpProvider_h | 30 #endif // WebCacheMemoryDumpProvider_h |
OLD | NEW |