// 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.

interface WorkerInternals {
    OriginTrialsTest originTrialsTest();

    // Records |feature| in worker's use counter. |feature| must be one of the
    // values from the UseCounter::Feature enum.
    [CallWith=ScriptState, RaisesException] void countFeature(unsigned long feature);
    [CallWith=ScriptState, RaisesException] void countDeprecation(unsigned long feature);

    [CallWith=ScriptState] void collectGarbage();
};
