blob: de6c2bc3615c99ba9875ce085ecdb4cb4d4f36c6 [file] [log] [blame]
// Copyright 2016 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 PerformanceLongTaskTiming_h
#define PerformanceLongTaskTiming_h
#include "core/timing/PerformanceEntry.h"
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
#include "wtf/text/WTFString.h"
namespace blink {
class DOMWindow;
class PerformanceLongTaskTiming final : public PerformanceEntry {
DEFINE_WRAPPERTYPEINFO();
public:
static PerformanceLongTaskTiming* create(double startTime,
double endTime,
String name,
DOMWindow* culpritWindow) {
return new PerformanceLongTaskTiming(startTime, endTime, name,
culpritWindow);
}
DOMWindow* culpritWindow() const;
DECLARE_VIRTUAL_TRACE();
private:
PerformanceLongTaskTiming(double startTime,
double endTime,
String name,
DOMWindow* culpritWindow);
~PerformanceLongTaskTiming() override;
Member<DOMWindow> m_culpritWindow;
};
} // namespace blink
#endif // PerformanceLongTaskTiming_h