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