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

Side by Side Diff: third_party/WebKit/Source/core/timing/DOMWindowPerformance.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 DOMWindowPerformance_h 5 #ifndef DOMWindowPerformance_h
6 #define DOMWindowPerformance_h 6 #define DOMWindowPerformance_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/frame/DOMWindowProperty.h" 9 #include "core/frame/DOMWindowProperty.h"
10 #include "platform/Supplementable.h" 10 #include "platform/Supplementable.h"
11 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
12 #include "wtf/Noncopyable.h" 12 #include "wtf/Noncopyable.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class DOMWindow; 16 class DOMWindow;
17 class Performance; 17 class Performance;
18 18
19 class CORE_EXPORT DOMWindowPerformance final : public NoBaseWillBeGarbageCollect ed<DOMWindowPerformance>, public WillBeHeapSupplement<LocalDOMWindow>, public DO MWindowProperty { 19 class CORE_EXPORT DOMWindowPerformance final : public GarbageCollected<DOMWindow Performance>, public HeapSupplement<LocalDOMWindow>, public DOMWindowProperty {
20 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindowPerformance); 20 USING_GARBAGE_COLLECTED_MIXIN(DOMWindowPerformance);
21 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(DOMWindowPerformance);
22 WTF_MAKE_NONCOPYABLE(DOMWindowPerformance); 21 WTF_MAKE_NONCOPYABLE(DOMWindowPerformance);
23 USING_FAST_MALLOC_WILL_BE_REMOVED(DOMWindowPerformance);
24 public: 22 public:
25 static DOMWindowPerformance& from(LocalDOMWindow&); 23 static DOMWindowPerformance& from(LocalDOMWindow&);
26 static Performance* performance(DOMWindow&); 24 static Performance* performance(DOMWindow&);
27 25
28 DECLARE_TRACE(); 26 DECLARE_TRACE();
29 27
30 private: 28 private:
31 explicit DOMWindowPerformance(LocalDOMWindow&); 29 explicit DOMWindowPerformance(LocalDOMWindow&);
32 static const char* supplementName(); 30 static const char* supplementName();
33 31
34 Performance* performance(); 32 Performance* performance();
35 33
36 // TODO(sof): try to move this direct reference and instead rely on frame(). 34 // TODO(sof): try to move this direct reference and instead rely on frame().
37 RawPtrWillBeMember<LocalDOMWindow> m_window; 35 Member<LocalDOMWindow> m_window;
38 PersistentWillBeMember<Performance> m_performance; 36 Member<Performance> m_performance;
39 }; 37 };
40 38
41 } // namespace blink 39 } // namespace blink
42 40
43 #endif // DOMWindowPerformance_h 41 #endif // DOMWindowPerformance_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698