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

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

Issue 2346663004: Moving platform tracing things into platform/tracing. (Closed)
Patch Set: Created 4 years, 3 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 030b3700786bf26f4fc491f7fc7d19d6f30d6ce5..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/MemoryCacheDumpProvider.cpp
+++ /dev/null
@@ -1,53 +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

Powered by Google App Engine
This is Rietveld 408576698