Chromium Code Reviews| Index: Source/core/timing/ConsoleMemory.h |
| diff --git a/Source/core/timing/ConsoleMemory.h b/Source/core/timing/ConsoleMemory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..867788c0063f7d633fb4f52f19cd7af9478d1ff7 |
| --- /dev/null |
| +++ b/Source/core/timing/ConsoleMemory.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ConsoleMemory_h |
| +#define ConsoleMemory_h |
| + |
| +#include "platform/Supplementable.h" |
| + |
| +namespace blink { |
| + |
| +class Console; |
| +class MemoryInfo; |
| + |
| +class ConsoleMemory final |
| + : public NoBaseWillBeGarbageCollectedFinalized<ConsoleMemory> |
| + , public WillBeHeapSupplement<Console> { |
| + WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ConsoleMemory); |
| + DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(ConsoleMemory); |
| +public: |
| + static ConsoleMemory& from(Console&); |
| + static MemoryInfo* memory(Console&); |
| + |
| + DECLARE_VIRTUAL_TRACE(); |
| + |
| +private: |
| + static const char* supplementName(); |
| + MemoryInfo* memory(); |
| + |
| + PersistentWillBeMember<MemoryInfo> m_memory; |
|
kouhei (in TOK)
2015/02/24 14:50:57
Please use RefPtrWillBeMember here, as MemoryInfo
|
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // ConsoleMemory_h |