2018-09-13 20:04:55 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2013-10-16 01:35:44 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
2018-11-06 15:07:27 +00:00
|
|
|
* https://w3c.github.io/resource-timing/#sec-performanceresourcetiming
|
2013-10-16 01:35:44 +00:00
|
|
|
*
|
|
|
|
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
|
|
* liability, trademark and document use rules apply.
|
|
|
|
*/
|
|
|
|
|
2018-01-24 16:17:32 +00:00
|
|
|
[Exposed=(Window,Worker)]
|
2013-10-16 01:35:44 +00:00
|
|
|
interface PerformanceResourceTiming : PerformanceEntry
|
|
|
|
{
|
|
|
|
readonly attribute DOMString initiatorType;
|
2015-07-24 15:49:25 +00:00
|
|
|
readonly attribute DOMString nextHopProtocol;
|
2013-10-16 01:35:44 +00:00
|
|
|
|
2017-10-06 16:04:54 +00:00
|
|
|
readonly attribute DOMHighResTimeStamp workerStart;
|
2018-04-04 14:54:26 +00:00
|
|
|
|
|
|
|
[NeedsSubjectPrincipal]
|
2013-10-16 01:35:44 +00:00
|
|
|
readonly attribute DOMHighResTimeStamp redirectStart;
|
2018-04-04 14:54:26 +00:00
|
|
|
[NeedsSubjectPrincipal]
|
2013-10-16 01:35:44 +00:00
|
|
|
readonly attribute DOMHighResTimeStamp redirectEnd;
|
2018-04-04 14:54:26 +00:00
|
|
|
|
2013-10-16 01:35:44 +00:00
|
|
|
readonly attribute DOMHighResTimeStamp fetchStart;
|
2018-04-04 14:54:26 +00:00
|
|
|
|
|
|
|
[NeedsSubjectPrincipal]
|
2013-10-16 01:35:44 +00:00
|
|
|
readonly attribute DOMHighResTimeStamp domainLookupStart;
|
2018-04-04 14:54:26 +00:00
|
|
|
[NeedsSubjectPrincipal]
|
2013-10-16 01:35:44 +00:00
|
|
|
readonly attribute DOMHighResTimeStamp domainLookupEnd;
|
2018-04-04 14:54:26 +00:00
|
|
|
[NeedsSubjectPrincipal]
|
2013-10-16 01:35:44 +00:00
|
|
|
readonly attribute DOMHighResTimeStamp connectStart;
|
2018-04-04 14:54:26 +00:00
|
|
|
[NeedsSubjectPrincipal]
|
2013-10-16 01:35:44 +00:00
|
|
|
readonly attribute DOMHighResTimeStamp connectEnd;
|
2018-04-04 14:54:26 +00:00
|
|
|
[NeedsSubjectPrincipal]
|
2013-10-16 01:35:44 +00:00
|
|
|
readonly attribute DOMHighResTimeStamp secureConnectionStart;
|
2018-04-04 14:54:26 +00:00
|
|
|
[NeedsSubjectPrincipal]
|
2013-10-16 01:35:44 +00:00
|
|
|
readonly attribute DOMHighResTimeStamp requestStart;
|
2018-04-04 14:54:26 +00:00
|
|
|
[NeedsSubjectPrincipal]
|
2013-10-16 01:35:44 +00:00
|
|
|
readonly attribute DOMHighResTimeStamp responseStart;
|
2018-04-04 14:54:26 +00:00
|
|
|
|
2013-10-16 01:35:44 +00:00
|
|
|
readonly attribute DOMHighResTimeStamp responseEnd;
|
2014-08-08 09:10:02 +00:00
|
|
|
|
2018-04-04 14:54:26 +00:00
|
|
|
[NeedsSubjectPrincipal]
|
2015-07-24 15:49:25 +00:00
|
|
|
readonly attribute unsigned long long transferSize;
|
2018-04-04 14:54:26 +00:00
|
|
|
[NeedsSubjectPrincipal]
|
2015-07-24 15:49:25 +00:00
|
|
|
readonly attribute unsigned long long encodedBodySize;
|
2018-04-04 14:54:26 +00:00
|
|
|
[NeedsSubjectPrincipal]
|
2015-07-24 15:49:25 +00:00
|
|
|
readonly attribute unsigned long long decodedBodySize;
|
|
|
|
|
2018-01-10 03:01:00 +00:00
|
|
|
// TODO: Use FrozenArray once available. (Bug 1236777)
|
|
|
|
// readonly attribute FrozenArray<PerformanceServerTiming> serverTiming;
|
|
|
|
[SecureContext, Frozen, Cached, Pure, NeedsSubjectPrincipal]
|
|
|
|
readonly attribute sequence<PerformanceServerTiming> serverTiming;
|
|
|
|
|
2018-05-18 03:43:59 +00:00
|
|
|
[Default] object toJSON();
|
2013-10-16 01:35:44 +00:00
|
|
|
};
|