| Index: third_party/WebKit/Source/core/fetch/WebCacheMemoryDumpProvider.cpp
|
| diff --git a/third_party/WebKit/Source/core/fetch/WebCacheMemoryDumpProvider.cpp b/third_party/WebKit/Source/core/fetch/WebCacheMemoryDumpProvider.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b19ecf39369976e44b47ca9a5f120f8d6a8398d2
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/fetch/WebCacheMemoryDumpProvider.cpp
|
| @@ -0,0 +1,36 @@
|
| +// 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 "config.h"
|
| +#include "core/fetch/WebCacheMemoryDumpProvider.h"
|
| +
|
| +#include "core/fetch/MemoryCache.h"
|
| +#include "public/platform/WebMemoryAllocatorDump.h"
|
| +#include "public/platform/WebProcessMemoryDump.h"
|
| +
|
| +namespace blink {
|
| +
|
| +WebCacheMemoryDumpProvider* WebCacheMemoryDumpProvider::instance()
|
| +{
|
| + DEFINE_STATIC_LOCAL(WebCacheMemoryDumpProvider, instance, ());
|
| + return &instance;
|
| +}
|
| +
|
| +bool WebCacheMemoryDumpProvider::onMemoryDump(WebMemoryDumpLevelOfDetail levelOfDetail, WebProcessMemoryDump* memoryDump)
|
| +{
|
| + ASSERT(isMainThread());
|
| + if (m_memoryCache)
|
| + m_memoryCache->onMemoryDump(memoryDump);
|
| + return true;
|
| +}
|
| +
|
| +WebCacheMemoryDumpProvider::WebCacheMemoryDumpProvider()
|
| +{
|
| +}
|
| +
|
| +WebCacheMemoryDumpProvider::~WebCacheMemoryDumpProvider()
|
| +{
|
| +}
|
| +
|
| +} // namespace blink
|
|
|