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

Side by Side Diff: third_party/WebKit/Source/platform/MemoryCacheDumpProvider.cpp

Issue 2028483002: Remove abstract classes for memory dumper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/MemoryCacheDumpProvider.h" 5 #include "platform/MemoryCacheDumpProvider.h"
6 6
7 #include "platform/web_process_memory_dump_impl.h"
8
9 namespace blink { 7 namespace blink {
10 8
11 DEFINE_TRACE(MemoryCacheDumpClient) 9 DEFINE_TRACE(MemoryCacheDumpClient)
12 { 10 {
13 } 11 }
14 12
15 MemoryCacheDumpProvider* MemoryCacheDumpProvider::instance() 13 MemoryCacheDumpProvider* MemoryCacheDumpProvider::instance()
16 { 14 {
17 DEFINE_STATIC_LOCAL(MemoryCacheDumpProvider, instance, ()); 15 DEFINE_STATIC_LOCAL(MemoryCacheDumpProvider, instance, ());
18 return &instance; 16 return &instance;
(...skipping 11 matching lines...) Expand all
30 level = blink::WebMemoryDumpLevelOfDetail::Light; 28 level = blink::WebMemoryDumpLevelOfDetail::Light;
31 break; 29 break;
32 case base::trace_event::MemoryDumpLevelOfDetail::DETAILED: 30 case base::trace_event::MemoryDumpLevelOfDetail::DETAILED:
33 level = blink::WebMemoryDumpLevelOfDetail::Detailed; 31 level = blink::WebMemoryDumpLevelOfDetail::Detailed;
34 break; 32 break;
35 default: 33 default:
36 NOTREACHED(); 34 NOTREACHED();
37 return false; 35 return false;
38 } 36 }
39 37
40 WebProcessMemoryDumpImpl dump(args.level_of_detail, memoryDump); 38 WebProcessMemoryDump dump(args.level_of_detail, memoryDump);
41 return m_client->onMemoryDump(level, &dump); 39 return m_client->onMemoryDump(level, &dump);
42 } 40 }
43 41
44 MemoryCacheDumpProvider::MemoryCacheDumpProvider() 42 MemoryCacheDumpProvider::MemoryCacheDumpProvider()
45 { 43 {
46 } 44 }
47 45
48 MemoryCacheDumpProvider::~MemoryCacheDumpProvider() 46 MemoryCacheDumpProvider::~MemoryCacheDumpProvider()
49 { 47 {
50 } 48 }
51 49
52 } // namespace blink 50 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/MemoryCacheDumpProvider.h ('k') | third_party/WebKit/Source/platform/PurgeableVector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698