blob: ef1a601ceff362397b4500864082c4c9b9f4b56e [file] [log] [blame]
// 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.
// https://github.com/WICG/reporting/blob/master/EXPLAINER.md#reportingobserver---observing-reports-from-javascript
callback ReportingObserverCallback = void (sequence<Report> reports, ReportingObserver observer);
[
Constructor(ReportingObserverCallback callback, optional ReportingObserverOptions options),
ConstructorCallWith=ExecutionContext,
RuntimeEnabled=ReportingObserver
] interface ReportingObserver {
void observe();
void disconnect();
};