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 WebCacheMemoryDumpProvider_h | |
| 6 #define WebCacheMemoryDumpProvider_h | |
| 7 | |
| 8 #include "core/fetch/MemoryCache.h" | |
| 9 #include "platform/heap/Handle.h" | |
| 10 #include "public/platform/WebCommon.h" | |
| 11 #include "public/platform/WebMemoryDumpProvider.h" | |
| 12 | |
| 13 namespace blink { | |
| 14 | |
| 15 class BLINK_PLATFORM_EXPORT WebCacheMemoryDumpProvider final : public WebMemoryD umpProvider { | |
|
haraken
2015/10/14 00:57:41
It seems strange to put WebXXX in core/. WebXXX ne
ssid
2015/10/14 05:01:22
I think it's the name only should be changed here.
haraken
2015/10/14 05:09:44
The WebCacheMemoryDumpProvider inherits from WebMe
ssid
2015/10/14 06:13:17
Platform cannot use core. So I cannot use memory c
haraken
2015/10/14 08:15:44
Inheriting public/platform/ from core/ sounds a bi
haraken
2015/10/14 09:04:07
BLINK_PLATFORM_EXPORT => CORE_EXPORT
ssid
2015/10/14 12:06:40
Done.
| |
| 16 public: | |
| 17 static WebCacheMemoryDumpProvider* instance(); | |
|
haraken
2015/10/14 09:04:07
Add a comment on why this needs to be a singleton.
ssid
2015/10/14 12:06:40
Done.
| |
| 18 ~WebCacheMemoryDumpProvider() override; | |
| 19 | |
| 20 // WebMemoryDumpProvider implementation. | |
| 21 bool onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*) overrid e; | |
| 22 | |
| 23 void setMemoryCache(MemoryCache* memoryCache) { m_memoryCache = memoryCache; } | |
|
Primiano Tucci (use gerrit)
2015/10/14 11:06:58
is there a way to check that the thread on which s
ssid
2015/10/14 12:06:40
Done.
| |
| 24 | |
| 25 private: | |
| 26 WebCacheMemoryDumpProvider(); | |
| 27 | |
| 28 WeakPersistent<MemoryCache> m_memoryCache; | |
| 29 }; | |
| 30 | |
| 31 } // namespace blink | |
| 32 | |
| 33 #endif // WebCacheMemoryDumpProvider_h | |
| OLD | NEW |