blob: abeb02aeaaef6ab09faf24577a33e42193a43cce [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 DOMWindowPerformance_h
#define DOMWindowPerformance_h
#include "base/macros.h"
#include "core/CoreExport.h"
#include "platform/Supplementable.h"
#include "platform/heap/Handle.h"
namespace blink {
class LocalDOMWindow;
class Performance;
class CORE_EXPORT DOMWindowPerformance final
: public GarbageCollected<DOMWindowPerformance>,
public Supplement<LocalDOMWindow> {
USING_GARBAGE_COLLECTED_MIXIN(DOMWindowPerformance);
public:
static DOMWindowPerformance& From(LocalDOMWindow&);
static Performance* performance(LocalDOMWindow&);
void Trace(blink::Visitor*);
void TraceWrappers(const ScriptWrappableVisitor*) const override;
private:
explicit DOMWindowPerformance(LocalDOMWindow&);
static const char* SupplementName();
Performance* performance();
TraceWrapperMember<Performance> performance_;
DISALLOW_COPY_AND_ASSIGN(DOMWindowPerformance);
};
} // namespace blink
#endif // DOMWindowPerformance_h