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 PerformanceObserverEntryList_h | 5 #ifndef PerformanceObserverEntryList_h |
6 #define PerformanceObserverEntryList_h | 6 #define PerformanceObserverEntryList_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
10 #include "wtf/PassRefPtr.h" | 10 #include "wtf/Forward.h" |
11 #include "wtf/RefCounted.h" | |
12 #include "wtf/text/WTFString.h" | |
13 | 11 |
14 namespace blink { | 12 namespace blink { |
15 | 13 |
16 class PerformanceEntry; | 14 class PerformanceEntry; |
17 using PerformanceEntryVector = HeapVector<Member<PerformanceEntry>>; | 15 using PerformanceEntryVector = HeapVector<Member<PerformanceEntry>>; |
18 | 16 |
19 class PerformanceObserverEntryList : public GarbageCollectedFinalized<Performanc
eObserverEntryList>, public ScriptWrappable { | 17 class PerformanceObserverEntryList : public GarbageCollectedFinalized<Performanc
eObserverEntryList>, public ScriptWrappable { |
20 DEFINE_WRAPPERTYPEINFO(); | 18 DEFINE_WRAPPERTYPEINFO(); |
21 public: | 19 public: |
22 PerformanceObserverEntryList(const PerformanceEntryVector&); | 20 PerformanceObserverEntryList(const PerformanceEntryVector&); |
23 | 21 |
24 virtual ~PerformanceObserverEntryList(); | 22 virtual ~PerformanceObserverEntryList(); |
25 | 23 |
26 PerformanceEntryVector getEntries() const; | 24 PerformanceEntryVector getEntries() const; |
27 PerformanceEntryVector getEntriesByType(const String& entryType); | 25 PerformanceEntryVector getEntriesByType(const String& entryType); |
28 PerformanceEntryVector getEntriesByName(const String& name, const String& en
tryType); | 26 PerformanceEntryVector getEntriesByName(const String& name, const String& en
tryType); |
29 | 27 |
30 DECLARE_TRACE(); | 28 DECLARE_TRACE(); |
31 | 29 |
32 protected: | 30 protected: |
33 PerformanceEntryVector m_performanceEntries; | 31 PerformanceEntryVector m_performanceEntries; |
34 }; | 32 }; |
35 | 33 |
36 } // namespace blink | 34 } // namespace blink |
37 | 35 |
38 #endif // PerformanceObserverEntryList_h | 36 #endif // PerformanceObserverEntryList_h |
OLD | NEW |