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 #ifndef ConsoleMemory_h |
| 6 #define ConsoleMemory_h |
| 7 |
| 8 #include "platform/Supplementable.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class Console; |
| 13 class MemoryInfo; |
| 14 |
| 15 class ConsoleMemory final |
| 16 : public NoBaseWillBeGarbageCollectedFinalized<ConsoleMemory> |
| 17 , public WillBeHeapSupplement<Console> { |
| 18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ConsoleMemory); |
| 19 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(ConsoleMemory); |
| 20 public: |
| 21 static ConsoleMemory& from(Console&); |
| 22 static MemoryInfo* memory(Console&); |
| 23 |
| 24 DECLARE_VIRTUAL_TRACE(); |
| 25 |
| 26 private: |
| 27 static const char* supplementName(); |
| 28 MemoryInfo* memory(); |
| 29 |
| 30 RefPtrWillBeMember<MemoryInfo> m_memory; |
| 31 }; |
| 32 |
| 33 } // namespace blink |
| 34 |
| 35 #endif // ConsoleMemory_h |
OLD | NEW |