Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: third_party/WebKit/Source/core/fetch/MemoryCache.h

Issue 1999613002: Move WebCacheMemoryDumpProvider to platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix link error on win Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/fetch/MemoryCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/MemoryCache.h
diff --git a/third_party/WebKit/Source/core/fetch/MemoryCache.h b/third_party/WebKit/Source/core/fetch/MemoryCache.h
index 5878044c52ae8deeff02cc58bb24ce178e93ce88..c2c9f8a6f83caef6f461b25af780c754abffad19 100644
--- a/third_party/WebKit/Source/core/fetch/MemoryCache.h
+++ b/third_party/WebKit/Source/core/fetch/MemoryCache.h
@@ -27,7 +27,7 @@
#include "core/CoreExport.h"
#include "core/fetch/Resource.h"
-#include "public/platform/WebMemoryDumpProvider.h"
+#include "platform/MemoryCacheDumpProvider.h"
#include "public/platform/WebThread.h"
#include "wtf/Allocator.h"
#include "wtf/HashMap.h"
@@ -122,7 +122,8 @@ WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::MemoryCacheLRUList);
namespace blink {
-class CORE_EXPORT MemoryCache final : public GarbageCollectedFinalized<MemoryCache>, public WebThread::TaskObserver {
+class CORE_EXPORT MemoryCache final : public GarbageCollectedFinalized<MemoryCache>, public WebThread::TaskObserver, public MemoryCacheDumpClient {
+ USING_GARBAGE_COLLECTED_MIXIN(MemoryCache);
WTF_MAKE_NONCOPYABLE(MemoryCache);
public:
static MemoryCache* create();
@@ -222,7 +223,7 @@ public:
void updateFramePaintTimestamp();
// Take memory usage snapshot for tracing.
- void onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*);
+ bool onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*) override;
bool isInSameLRUListForTest(const Resource*, const Resource*);
private:
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/fetch/MemoryCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698