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

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

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 #ifndef MemoryCacheDumpProvider_h 5 #ifndef MemoryCacheDumpProvider_h
6 #define MemoryCacheDumpProvider_h 6 #define MemoryCacheDumpProvider_h
7 7
8 #include "base/trace_event/memory_dump_provider.h" 8 #include "base/trace_event/memory_dump_provider.h"
9 #include "base/trace_event/process_memory_dump.h" 9 #include "base/trace_event/process_memory_dump.h"
10 #include "platform/PlatformExport.h" 10 #include "platform/PlatformExport.h"
11 #include "platform/WebProcessMemoryDump.h"
12 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
12 #include "platform/web_process_memory_dump.h"
13 #include "wtf/Allocator.h" 13 #include "wtf/Allocator.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class PLATFORM_EXPORT MemoryCacheDumpClient : public GarbageCollectedMixin { 17 class PLATFORM_EXPORT MemoryCacheDumpClient : public GarbageCollectedMixin {
18 public: 18 public:
19 virtual ~MemoryCacheDumpClient() { } 19 virtual ~MemoryCacheDumpClient() { }
20 virtual bool onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*) = 0; 20 virtual bool onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*) = 0;
21 21
22 DECLARE_VIRTUAL_TRACE(); 22 DECLARE_VIRTUAL_TRACE();
(...skipping 21 matching lines...) Expand all
44 MemoryCacheDumpProvider(); 44 MemoryCacheDumpProvider();
45 45
46 WeakPersistent<MemoryCacheDumpClient> m_client; 46 WeakPersistent<MemoryCacheDumpClient> m_client;
47 47
48 WTF_MAKE_NONCOPYABLE(MemoryCacheDumpProvider); 48 WTF_MAKE_NONCOPYABLE(MemoryCacheDumpProvider);
49 }; 49 };
50 50
51 } // namespace blink 51 } // namespace blink
52 52
53 #endif // MemoryCacheDumpProvider_h 53 #endif // MemoryCacheDumpProvider_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698