blob: 3ccf9a676729841a936e8f98dfe6990bf2968518 [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 WorkerInternals_h
#define WorkerInternals_h
#include "platform/bindings/ScriptWrappable.h"
#include "platform/heap/GarbageCollected.h"
namespace blink {
class ExceptionState;
class OriginTrialsTest;
class ScriptState;
class WorkerInternals final : public ScriptWrappable {
static WorkerInternals* Create() { return new WorkerInternals(); }
virtual ~WorkerInternals();
OriginTrialsTest* originTrialsTest() const;
void countFeature(ScriptState*, uint32_t feature, ExceptionState&);
void countDeprecation(ScriptState*, uint32_t feature, ExceptionState&);
void collectGarbage(ScriptState*);
explicit WorkerInternals();
} // namespace blink
#endif // WorkerInternals_h