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

Unified Diff: third_party/WebKit/Source/core/fetch/WebCacheMemoryDumpProvider.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
Index: third_party/WebKit/Source/core/fetch/WebCacheMemoryDumpProvider.h
diff --git a/third_party/WebKit/Source/core/fetch/WebCacheMemoryDumpProvider.h b/third_party/WebKit/Source/core/fetch/WebCacheMemoryDumpProvider.h
deleted file mode 100644
index 1e18e9493a944fa77cdac111c3a76310b3f6c569..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/fetch/WebCacheMemoryDumpProvider.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef WebCacheMemoryDumpProvider_h
-#define WebCacheMemoryDumpProvider_h
-
-#include "core/fetch/MemoryCache.h"
-#include "platform/heap/Handle.h"
-#include "public/platform/WebCommon.h"
-#include "public/platform/WebMemoryDumpProvider.h"
-#include "wtf/Allocator.h"
-
-namespace blink {
-
-// This class is wrapper around MemoryCache to take memory snapshots. It dumps
-// the stats of cache only after the cache is created.
-class CORE_EXPORT WebCacheMemoryDumpProvider final : public WebMemoryDumpProvider {
- USING_FAST_MALLOC(WebCacheMemoryDumpProvider);
-public:
- // This class is singleton since there is a global MemoryCache object.
- static WebCacheMemoryDumpProvider* instance();
- ~WebCacheMemoryDumpProvider() override;
-
- // WebMemoryDumpProvider implementation.
- bool onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*) override;
-
- void setMemoryCache(MemoryCache* memoryCache)
- {
- ASSERT(isMainThread());
- m_memoryCache = memoryCache;
- }
-
-private:
- WebCacheMemoryDumpProvider();
-
- WeakPersistent<MemoryCache> m_memoryCache;
-};
-
-} // namespace blink
-
-#endif // WebCacheMemoryDumpProvider_h

Powered by Google App Engine
This is Rietveld 408576698