| OLD | NEW |
| 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/frame/DOMWindowProperty.h" | 8 #include "core/frame/DOMWindowProperty.h" |
| 9 #include "platform/Supplementable.h" | 9 #include "platform/Supplementable.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class DOMWindow; | 14 class DOMWindow; |
| 15 class Performance; | 15 class Performance; |
| 16 | 16 |
| 17 class DOMWindowPerformance final : public NoBaseWillBeGarbageCollected<DOMWindow
Performance>, public WillBeHeapSupplement<LocalDOMWindow>, public DOMWindowPrope
rty { | 17 class DOMWindowPerformance final : public NoBaseWillBeGarbageCollected<DOMWindow
Performance>, public WillBeHeapSupplement<LocalDOMWindow>, public DOMWindowPrope
rty { |
| 18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindowPerformance); | 18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindowPerformance); |
| 19 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(DOMWindowPerformance); | 19 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(DOMWindowPerformance); |
| 20 public: | 20 public: |
| 21 static DOMWindowPerformance& from(LocalDOMWindow&); | 21 static DOMWindowPerformance& from(LocalDOMWindow&); |
| 22 static Performance* performance(DOMWindow&); | 22 static Performance* performance(DOMWindow&); |
| 23 | 23 |
| 24 void trace(Visitor*); | 24 DECLARE_TRACE(); |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 explicit DOMWindowPerformance(LocalDOMWindow&); | 27 explicit DOMWindowPerformance(LocalDOMWindow&); |
| 28 static const char* supplementName(); | 28 static const char* supplementName(); |
| 29 | 29 |
| 30 Performance* performance(); | 30 Performance* performance(); |
| 31 | 31 |
| 32 LocalDOMWindow& m_window; | 32 LocalDOMWindow& m_window; |
| 33 RefPtrWillBeMember<Performance> m_performance; | 33 RefPtrWillBeMember<Performance> m_performance; |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 } // namespace blink | 36 } // namespace blink |
| 37 | 37 |
| 38 #endif // DOMWindowPerformance_h | 38 #endif // DOMWindowPerformance_h |
| OLD | NEW |