blob: 27e0d71ad0b990d75e6e286fefb339b514978a47 [file] [log] [blame]
// 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