blob: 6a466bd07148a80a3b86ea73dead8c776863bb06 [file] [log] [blame]
// services/network/public/mojom/load_timing_info.mojom.m.js is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2020 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.
import {mojo} from '../../../../mojo/public/js/bindings.js';
import {
Time as mojoBase_mojom_Time,
TimeSpec as mojoBase_mojom_TimeSpec,
TimeTicks as mojoBase_mojom_TimeTicks,
TimeTicksSpec as mojoBase_mojom_TimeTicksSpec
} from '../../../../mojo/public/mojom/base/time.mojom.m.js';
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const LoadTimingInfoConnectTimingSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const LoadTimingInfoSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
mojo.internal.Struct(
LoadTimingInfoConnectTimingSpec.$,
'LoadTimingInfoConnectTiming',
[
mojo.internal.StructField(
'dnsStart', 0,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'dnsEnd', 8,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'connectStart', 16,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'connectEnd', 24,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'sslStart', 32,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'sslEnd', 40,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
],
[[0, 56],]);
/**
* @record
*/
export class LoadTimingInfoConnectTiming {
constructor() {
/** @type { !mojoBase_mojom_TimeTicks } */
this.dnsStart;
/** @type { !mojoBase_mojom_TimeTicks } */
this.dnsEnd;
/** @type { !mojoBase_mojom_TimeTicks } */
this.connectStart;
/** @type { !mojoBase_mojom_TimeTicks } */
this.connectEnd;
/** @type { !mojoBase_mojom_TimeTicks } */
this.sslStart;
/** @type { !mojoBase_mojom_TimeTicks } */
this.sslEnd;
}
}
mojo.internal.Struct(
LoadTimingInfoSpec.$,
'LoadTimingInfo',
[
mojo.internal.StructField(
'socketReused', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */,
0),
mojo.internal.StructField(
'socketLogId', 4,
0,
mojo.internal.Uint32,
0,
false /* nullable */,
0),
mojo.internal.StructField(
'requestStartTime', 8,
0,
mojoBase_mojom_TimeSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'requestStart', 16,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'proxyResolveStart', 24,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'proxyResolveEnd', 32,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'connectTiming', 40,
0,
LoadTimingInfoConnectTimingSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'sendStart', 48,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'sendEnd', 56,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'receiveHeadersStart', 64,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'receiveHeadersEnd', 72,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'receiveNonInformationalHeadersStart', 80,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'firstEarlyHintsTime', 88,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'pushStart', 96,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'pushEnd', 104,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'serviceWorkerStartTime', 112,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'serviceWorkerReadyTime', 120,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'serviceWorkerFetchStart', 128,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
mojo.internal.StructField(
'serviceWorkerRespondWithSettled', 136,
0,
mojoBase_mojom_TimeTicksSpec.$,
null,
false /* nullable */,
0),
],
[[0, 152],]);
/**
* @record
*/
export class LoadTimingInfo {
constructor() {
/** @type { !boolean } */
this.socketReused;
/** @type { !number } */
this.socketLogId;
/** @type { !mojoBase_mojom_Time } */
this.requestStartTime;
/** @type { !mojoBase_mojom_TimeTicks } */
this.requestStart;
/** @type { !mojoBase_mojom_TimeTicks } */
this.proxyResolveStart;
/** @type { !mojoBase_mojom_TimeTicks } */
this.proxyResolveEnd;
/** @type { !LoadTimingInfoConnectTiming } */
this.connectTiming;
/** @type { !mojoBase_mojom_TimeTicks } */
this.sendStart;
/** @type { !mojoBase_mojom_TimeTicks } */
this.sendEnd;
/** @type { !mojoBase_mojom_TimeTicks } */
this.receiveHeadersStart;
/** @type { !mojoBase_mojom_TimeTicks } */
this.receiveHeadersEnd;
/** @type { !mojoBase_mojom_TimeTicks } */
this.receiveNonInformationalHeadersStart;
/** @type { !mojoBase_mojom_TimeTicks } */
this.firstEarlyHintsTime;
/** @type { !mojoBase_mojom_TimeTicks } */
this.pushStart;
/** @type { !mojoBase_mojom_TimeTicks } */
this.pushEnd;
/** @type { !mojoBase_mojom_TimeTicks } */
this.serviceWorkerStartTime;
/** @type { !mojoBase_mojom_TimeTicks } */
this.serviceWorkerReadyTime;
/** @type { !mojoBase_mojom_TimeTicks } */
this.serviceWorkerFetchStart;
/** @type { !mojoBase_mojom_TimeTicks } */
this.serviceWorkerRespondWithSettled;
}
}