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

[
    ActiveScriptWrappable,
    Constructor(DOMString interfaceName, optional MojoScope scope = "context"),
    ConstructorCallWith=ExecutionContext,
    Exposed=(Window,Worker),
    RaisesException=Constructor,
    RuntimeEnabled=MojoJSTest
] interface MojoInterfaceInterceptor : EventTarget {
    [RaisesException] void start();
    void stop();

    attribute EventHandler oninterfacerequest;
};
