OLD | NEW |
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 WebMemoryAllocatorDump_h | 5 #ifndef WebMemoryAllocatorDump_h |
6 #define WebMemoryAllocatorDump_h | 6 #define WebMemoryAllocatorDump_h |
7 | 7 |
8 #include "WebCommon.h" | 8 #include "public/platform/WebCommon.h" |
9 #include "WebString.h" | 9 #include "public/platform/WebString.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 typedef uint64_t WebMemoryAllocatorDumpGuid; | 12 typedef uint64_t WebMemoryAllocatorDumpGuid; |
13 | 13 |
14 // A container which holds all the attributes of a particular dump for a given | 14 // A container which holds all the attributes of a particular dump for a given |
15 // allocator. | 15 // allocator. |
16 class BLINK_PLATFORM_EXPORT WebMemoryAllocatorDump { | 16 class BLINK_PLATFORM_EXPORT WebMemoryAllocatorDump { |
17 public: | 17 public: |
18 virtual ~WebMemoryAllocatorDump(); | 18 virtual ~WebMemoryAllocatorDump(); |
19 | 19 |
(...skipping 14 matching lines...) Expand all Loading... |
34 // graph APIs (see AddOwnershipEdge) to express retention / suballocation or | 34 // graph APIs (see AddOwnershipEdge) to express retention / suballocation or |
35 // cross process sharing. See crbug.com/492102 for design docs. | 35 // cross process sharing. See crbug.com/492102 for design docs. |
36 // Subsequent MemoryAllocatorDump(s) with the same |absolute_name| are | 36 // Subsequent MemoryAllocatorDump(s) with the same |absolute_name| are |
37 // expected to have the same guid. | 37 // expected to have the same guid. |
38 virtual WebMemoryAllocatorDumpGuid guid() const = 0; | 38 virtual WebMemoryAllocatorDumpGuid guid() const = 0; |
39 }; | 39 }; |
40 | 40 |
41 } // namespace blink | 41 } // namespace blink |
42 | 42 |
43 #endif // WebMemoryAllocatorDump_h | 43 #endif // WebMemoryAllocatorDump_h |
OLD | NEW |