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

Side by Side Diff: public/platform/WebMemoryDumpProvider.h

Issue 1349183002: [tracing] Rename WebMemoryDumpLevelOfDetail enums to match chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « Source/platform/heap/BlinkGCMemoryDumpProviderTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 WebMemoryDumpProvider_h 5 #ifndef WebMemoryDumpProvider_h
6 #define WebMemoryDumpProvider_h 6 #define WebMemoryDumpProvider_h
7 7
8 #include "WebCommon.h" 8 #include "WebCommon.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class WebProcessMemoryDump; 12 class WebProcessMemoryDump;
13 13
14 // Used to specify the type of memory dump the WebMemoryDumpProvider should 14 // Used to specify the type of memory dump the WebMemoryDumpProvider should
15 // generate on dump requests. 15 // generate on dump requests.
16 enum class WebMemoryDumpLevelOfDetail { 16 enum class WebMemoryDumpLevelOfDetail {
17 Low, 17 Light,
18 High 18 Detailed
19 }; 19 };
20 20
21 // Base interface to be part of the memory tracing infrastructure. Blink classes 21 // Base interface to be part of the memory tracing infrastructure. Blink classes
22 // can implement this interface and register themselves (see 22 // can implement this interface and register themselves (see
23 // Platform::registerMemoryDumpProvider()) to dump stats for their allocators. 23 // Platform::registerMemoryDumpProvider()) to dump stats for their allocators.
24 class BLINK_PLATFORM_EXPORT WebMemoryDumpProvider { 24 class BLINK_PLATFORM_EXPORT WebMemoryDumpProvider {
25 public: 25 public:
26 virtual ~WebMemoryDumpProvider(); 26 virtual ~WebMemoryDumpProvider();
27 27
28 // Called by the MemoryDumpManager when generating memory dumps. 28 // Called by the MemoryDumpManager when generating memory dumps.
29 // WebMemoryDumpLevelOfDetail specifies the size of dump the embedders 29 // WebMemoryDumpLevelOfDetail specifies the size of dump the embedders
30 // should generate on dump requests. Embedders are expected to populate 30 // should generate on dump requests. Embedders are expected to populate
31 // the WebProcessMemoryDump* argument depending on the level and return true 31 // the WebProcessMemoryDump* argument depending on the level and return true
32 // on success or false if anything went wrong and the dump should be 32 // on success or false if anything went wrong and the dump should be
33 // considered invalid. 33 // considered invalid.
34 virtual bool onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*) = 0; 34 virtual bool onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*) = 0;
35 }; 35 };
36 36
37 } // namespace blink 37 } // namespace blink
38 38
39 #endif // WebMemoryDumpProvider_h 39 #endif // WebMemoryDumpProvider_h
OLDNEW
« no previous file with comments | « Source/platform/heap/BlinkGCMemoryDumpProviderTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698