| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "config.h" |
| 6 #include "core/fetch/WebCacheMemoryDumpProvider.h" |
| 7 |
| 8 #include "core/fetch/MemoryCache.h" |
| 9 #include "public/platform/WebMemoryAllocatorDump.h" |
| 10 #include "public/platform/WebProcessMemoryDump.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 WebCacheMemoryDumpProvider* WebCacheMemoryDumpProvider::instance() |
| 15 { |
| 16 DEFINE_STATIC_LOCAL(WebCacheMemoryDumpProvider, instance, ()); |
| 17 return &instance; |
| 18 } |
| 19 |
| 20 bool WebCacheMemoryDumpProvider::onMemoryDump(WebMemoryDumpLevelOfDetail levelOf
Detail, WebProcessMemoryDump* memoryDump) |
| 21 { |
| 22 if (m_memoryCache) |
| 23 m_memoryCache->onMemoryDump(memoryDump); |
| 24 return true; |
| 25 } |
| 26 |
| 27 WebCacheMemoryDumpProvider::WebCacheMemoryDumpProvider() |
| 28 { |
| 29 } |
| 30 |
| 31 WebCacheMemoryDumpProvider::~WebCacheMemoryDumpProvider() |
| 32 { |
| 33 } |
| 34 |
| 35 } // namespace blink |
| OLD | NEW |