blob: 96758829dc8045da765aa3e992a36ff1d553cce4 [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();
ReportList takeRecords();
};
typedef sequence<Report> ReportList;