Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: Source/core/timing/ConsoleMemory.h

Issue 950343002: Decouple memory() from Console (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: re-up Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 PersistentWillBeMember<MemoryInfo> m_memory;
kouhei (in TOK) 2015/02/24 14:50:57 Please use RefPtrWillBeMember here, as MemoryInfo
31 };
32
33 } // namespace blink
34
35 #endif // ConsoleMemory_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698