Chromium Code Reviews| 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> | |
|
jsbell
2015/02/24 18:32:17
Nit: blink style would keep these all on one line
| |
| 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() { return "ConsoleMemory"; } | |
| 28 MemoryInfo* memory(); | |
| 29 | |
| 30 RefPtrWillBeMember<MemoryInfo> m_memory; | |
| 31 }; | |
| 32 | |
| 33 } // namespace blink | |
| 34 | |
| 35 #endif // ConsoleMemory_h | |
| OLD | NEW |