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 : public GarbageCollected<ConsoleMemory>, public Suppl
ement<Console> { | |
16 USING_GARBAGE_COLLECTED_MIXIN(ConsoleMemory); | |
17 public: | |
18 static ConsoleMemory& from(Console&); | |
19 static MemoryInfo* memory(Console&); | |
20 static void setMemory(Console&, MemoryInfo*) { } | |
21 | |
22 DEFINE_INLINE_VIRTUAL_TRACE() { Supplement<Console>::trace(visitor); } | |
23 | |
24 private: | |
25 static const char* supplementName() { return "ConsoleMemory"; } | |
26 MemoryInfo* memory(); | |
27 }; | |
28 | |
29 } // namespace blink | |
30 | |
31 #endif // ConsoleMemory_h | |
OLD | NEW |