Index: Source/core/timing/PerformanceObserverEntryList.h |
diff --git a/Source/core/timing/PerformanceObserverEntryList.h b/Source/core/timing/PerformanceObserverEntryList.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..27e0d71ad0b990d75e6e286fefb339b514978a47 |
--- /dev/null |
+++ b/Source/core/timing/PerformanceObserverEntryList.h |
@@ -0,0 +1,38 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef PerformanceObserverEntryList_h |
+#define PerformanceObserverEntryList_h |
+ |
+#include "bindings/core/v8/ScriptWrappable.h" |
+#include "platform/heap/Handle.h" |
+#include "wtf/PassRefPtr.h" |
+#include "wtf/RefCounted.h" |
+#include "wtf/text/WTFString.h" |
+ |
+namespace blink { |
+ |
+class PerformanceEntry; |
+using PerformanceEntryVector = HeapVector<Member<PerformanceEntry>>; |
+ |
+class PerformanceObserverEntryList : public GarbageCollectedFinalized<PerformanceObserverEntryList>, public ScriptWrappable { |
+ DEFINE_WRAPPERTYPEINFO(); |
+public: |
+ PerformanceObserverEntryList(const PerformanceEntryVector&); |
+ |
+ virtual ~PerformanceObserverEntryList(); |
+ |
+ PerformanceEntryVector getEntries() const; |
+ PerformanceEntryVector getEntriesByType(const String& entryType); |
+ PerformanceEntryVector getEntriesByName(const String& name, const String& entryType); |
+ |
+ DECLARE_TRACE(); |
+ |
+protected: |
+ PerformanceEntryVector m_performanceEntries; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // PerformanceObserverEntryList_h |