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

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

Issue 693483004: Enable Oilpan for core/timing/. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: de-weakify Performance::m_memoryInfo Created 5 years, 8 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
« no previous file with comments | « no previous file | Source/core/timing/DOMWindowPerformance.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ConsoleMemory_h 5 #ifndef ConsoleMemory_h
6 #define ConsoleMemory_h 6 #define ConsoleMemory_h
7 7
8 #include "platform/Supplementable.h" 8 #include "platform/Supplementable.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class Console; 12 class Console;
13 class MemoryInfo; 13 class MemoryInfo;
14 14
15 class ConsoleMemory final : public NoBaseWillBeGarbageCollectedFinalized<Console Memory>, public WillBeHeapSupplement<Console> { 15 class ConsoleMemory final : public NoBaseWillBeGarbageCollectedFinalized<Console Memory>, public WillBeHeapSupplement<Console> {
16 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ConsoleMemory); 16 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ConsoleMemory);
17 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(ConsoleMemory); 17 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(ConsoleMemory);
18 public: 18 public:
19 static ConsoleMemory& from(Console&); 19 static ConsoleMemory& from(Console&);
20 static MemoryInfo* memory(Console&); 20 static MemoryInfo* memory(Console&);
21 static void setMemory(Console&, MemoryInfo*) { } 21 static void setMemory(Console&, MemoryInfo*) { }
22 22
23 DECLARE_VIRTUAL_TRACE(); 23 DECLARE_VIRTUAL_TRACE();
24 24
25 private: 25 private:
26 static const char* supplementName() { return "ConsoleMemory"; } 26 static const char* supplementName() { return "ConsoleMemory"; }
27 MemoryInfo* memory(); 27 MemoryInfo* memory();
28 28
29 RefPtrWillBeMember<MemoryInfo> m_memory; 29 PersistentWillBeMember<MemoryInfo> m_memory;
30 }; 30 };
31 31
32 } // namespace blink 32 } // namespace blink
33 33
34 #endif // ConsoleMemory_h 34 #endif // ConsoleMemory_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/timing/DOMWindowPerformance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698