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