Path: blob/trunk/third_party/closure/goog/testing/cspviolationobserver_externs.js
4058 views
/**1* @license2* Copyright The Closure Library Authors.3* SPDX-License-Identifier: Apache-2.04*/5/**6* @fileoverview Externs used by cspviolationobserver.js that are not available7* in the open-source Closure compiler release. This file should be deleted8* once w3c_reporting_observer.js is available in open-source externs.9*10* @externs11*/1213// TODO(user): Remove this file once w3c_reporting_observer.js is14// available in the open-source Closure compiler.1516/**17* https://w3c.github.io/reporting/#interface-reporting-observer18* @constructor19* @param {!ReportingObserverCallback} callback20* @param {!ReportingObserverOptions} opts21*/22function ReportingObserver2(callback, opts) {}23/** @return {void} */24ReportingObserver2.prototype.observe = function() {};25/** @return {void} */26ReportingObserver2.prototype.disconnect = function() {};27/** @return {!Array<!Report>} */28ReportingObserver2.prototype.takeRecords = function() {};2930/**31* @typedef {ReportingObserver2|ReportingObserver}32* @suppress {duplicate}33*/34var ReportingObserver;353637/**38* @typedef {!function(!Array<Report>, !ReportingObserver): void}39* @suppress {duplicate}40*/41var ReportingObserverCallback;424344/**45* @constructor46*/47function ReportingObserverOptions2() {}48/** @type {undefined|!Array<string>} */49ReportingObserverOptions2.prototype.types;50/** @type {boolean} */51ReportingObserverOptions2.prototype.buffered;5253/**54* @typedef {ReportingObserverOptions2|ReportingObserverOptions}55* @suppress {duplicate}56*/57var ReportingObserverOptions;585960/**61* @constructor62* @suppress {duplicate}63*/64function Report2() {}65/** @type {string} */ Report2.prototype.type;66/** @type {string} */ Report2.prototype.url;67/** @type {?ReportBody} */ Report2.prototype.body;6869/**70* @typedef {Report2|Report}71* @suppress {duplicate}72*/73var Report;747576/**77* @constructor78*/79function ReportBody2() {}8081/**82* @typedef {ReportBody2|ReportBody2}83* @suppress {duplicate}84*/85var ReportBody;868788