Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1024)

Unified Diff: Source/core/timing/PerformanceObserverEntryList.h

Issue 1198863006: First version of PerformanceObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code review comments Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « Source/core/timing/PerformanceObserverCallback.h ('k') | Source/core/timing/PerformanceObserverEntryList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698