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/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" |
(...skipping 14 matching lines...) Expand all Loading... |
25 static Performance* performance(DOMWindow&); | 25 static Performance* performance(DOMWindow&); |
26 | 26 |
27 DECLARE_TRACE(); | 27 DECLARE_TRACE(); |
28 | 28 |
29 private: | 29 private: |
30 explicit DOMWindowPerformance(LocalDOMWindow&); | 30 explicit DOMWindowPerformance(LocalDOMWindow&); |
31 static const char* supplementName(); | 31 static const char* supplementName(); |
32 | 32 |
33 Performance* performance(); | 33 Performance* performance(); |
34 | 34 |
35 LocalDOMWindow& m_window; | 35 // TODO(sof): try to move this direct reference and instead rely on frame(). |
36 RefPtrWillBeMember<Performance> m_performance; | 36 RawPtrWillBeMember<LocalDOMWindow> m_window; |
| 37 PersistentWillBeMember<Performance> m_performance; |
37 }; | 38 }; |
38 | 39 |
39 } // namespace blink | 40 } // namespace blink |
40 | 41 |
41 #endif // DOMWindowPerformance_h | 42 #endif // DOMWindowPerformance_h |
OLD | NEW |