| 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 PerformanceObserver_h | 5 #ifndef PerformanceObserver_h |
| 6 #define PerformanceObserver_h | 6 #define PerformanceObserver_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/TraceWrapperMember.h" | 8 #include "bindings/core/v8/TraceWrapperMember.h" |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/timing/PerformanceEntry.h" | 10 #include "core/timing/PerformanceEntry.h" |
| 11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 12 #include "wtf/Vector.h" | 12 #include "wtf/Vector.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class ExecutionContext; | 16 class ExecutionContext; |
| 17 class ExceptionState; | 17 class ExceptionState; |
| 18 class PerformanceBase; | 18 class PerformanceBase; |
| 19 class PerformanceObserver; | 19 class PerformanceObserver; |
| 20 class PerformanceObserverCallback; | 20 class PerformanceObserverCallback; |
| 21 class PerformanceObserverInit; | 21 class PerformanceObserverInit; |
| 22 | 22 |
| 23 using PerformanceEntryVector = HeapVector<Member<PerformanceEntry>>; | 23 using PerformanceEntryVector = HeapVector<Member<PerformanceEntry>>; |
| 24 | 24 |
| 25 class CORE_EXPORT PerformanceObserver final | 25 class CORE_EXPORT PerformanceObserver final |
| 26 : public GarbageCollectedFinalized<PerformanceObserver>, | 26 : public GarbageCollected<PerformanceObserver>, |
| 27 public ScriptWrappable { | 27 public ScriptWrappable { |
| 28 DEFINE_WRAPPERTYPEINFO(); | 28 DEFINE_WRAPPERTYPEINFO(); |
| 29 friend class PerformanceBase; | 29 friend class PerformanceBase; |
| 30 friend class PerformanceBaseTest; | 30 friend class PerformanceBaseTest; |
| 31 friend class PerformanceObserverTest; | 31 friend class PerformanceObserverTest; |
| 32 | 32 |
| 33 public: | 33 public: |
| 34 static PerformanceObserver* create(ExecutionContext*, | 34 static PerformanceObserver* create(ExecutionContext*, |
| 35 PerformanceBase*, | 35 PerformanceBase*, |
| 36 PerformanceObserverCallback*); | 36 PerformanceObserverCallback*); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 55 TraceWrapperMember<PerformanceObserverCallback> m_callback; | 55 TraceWrapperMember<PerformanceObserverCallback> m_callback; |
| 56 WeakMember<PerformanceBase> m_performance; | 56 WeakMember<PerformanceBase> m_performance; |
| 57 PerformanceEntryVector m_performanceEntries; | 57 PerformanceEntryVector m_performanceEntries; |
| 58 PerformanceEntryTypeMask m_filterOptions; | 58 PerformanceEntryTypeMask m_filterOptions; |
| 59 bool m_isRegistered; | 59 bool m_isRegistered; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace blink | 62 } // namespace blink |
| 63 | 63 |
| 64 #endif // PerformanceObserver_h | 64 #endif // PerformanceObserver_h |
| OLD | NEW |