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

Unified Diff: third_party/WebKit/Source/platform/MemoryCacheDumpProvider.cpp

Issue 2391383002: Moving platform tracing things into platform/tracing. (Closed)
Patch Set: Created 4 years, 2 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/platform/MemoryCacheDumpProvider.cpp
diff --git a/third_party/WebKit/Source/platform/MemoryCacheDumpProvider.cpp b/third_party/WebKit/Source/platform/MemoryCacheDumpProvider.cpp
deleted file mode 100644
index 53c680918cbe9b666619dfc454c17b9eda50df9c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/MemoryCacheDumpProvider.cpp
+++ /dev/null
@@ -1,47 +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.
-
-#include "platform/MemoryCacheDumpProvider.h"
-
-namespace blink {
-
-DEFINE_TRACE(MemoryCacheDumpClient) {}
-
-MemoryCacheDumpProvider* MemoryCacheDumpProvider::instance() {
- DEFINE_STATIC_LOCAL(MemoryCacheDumpProvider, instance, ());
- return &instance;
-}
-
-bool MemoryCacheDumpProvider::OnMemoryDump(
- const base::trace_event::MemoryDumpArgs& args,
- base::trace_event::ProcessMemoryDump* memoryDump) {
- DCHECK(isMainThread());
- if (!m_client)
- return false;
-
- WebMemoryDumpLevelOfDetail level;
- switch (args.level_of_detail) {
- case base::trace_event::MemoryDumpLevelOfDetail::BACKGROUND:
- level = blink::WebMemoryDumpLevelOfDetail::Background;
- break;
- case base::trace_event::MemoryDumpLevelOfDetail::LIGHT:
- level = blink::WebMemoryDumpLevelOfDetail::Light;
- break;
- case base::trace_event::MemoryDumpLevelOfDetail::DETAILED:
- level = blink::WebMemoryDumpLevelOfDetail::Detailed;
- break;
- default:
- NOTREACHED();
- return false;
- }
-
- WebProcessMemoryDump dump(args.level_of_detail, memoryDump);
- return m_client->onMemoryDump(level, &dump);
-}
-
-MemoryCacheDumpProvider::MemoryCacheDumpProvider() {}
-
-MemoryCacheDumpProvider::~MemoryCacheDumpProvider() {}
-
-} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/MemoryCacheDumpProvider.h ('k') | third_party/WebKit/Source/platform/MemoryCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698