Commit 6186b1a8 authored by Yutaka Hirano's avatar Yutaka Hirano Committed by Commit Bot

Add QuicTransport related use counters

Bug: 1011392
Change-Id: Id4bf79d0d2c69566465d73c1cfc42cb47e62c858
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2096323Reviewed-by: default avatarAdam Rice <ricea@chromium.org>
Commit-Queue: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749053}
parent 5e1a96fa
...@@ -2522,6 +2522,9 @@ enum WebFeature { ...@@ -2522,6 +2522,9 @@ enum WebFeature {
kV8RTCRtpSender_CreateEncodedVideoStreams_Method = 3181, kV8RTCRtpSender_CreateEncodedVideoStreams_Method = 3181,
kV8RTCRtpReceiver_CreateEncodedAudioStreams_Method = 3182, kV8RTCRtpReceiver_CreateEncodedAudioStreams_Method = 3182,
kV8RTCRtpReceiver_CreateEncodedVideoStreams_Method = 3183, kV8RTCRtpReceiver_CreateEncodedVideoStreams_Method = 3183,
kQuicTransport = 3184,
kQuicTransportStreamApis = 3185,
kQuicTransportDatagramApis = 3186,
// Add new features immediately above this line. Don't change assigned // Add new features immediately above this line. Don't change assigned
// numbers of any item, and don't reuse removed slots. // numbers of any item, and don't reuse removed slots.
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
Exposed=(Window,Worker), Exposed=(Window,Worker),
RuntimeEnabled=QuicTransport RuntimeEnabled=QuicTransport
] interface QuicTransport { ] interface QuicTransport {
[CallWith=ScriptState, RaisesException] constructor(USVString url); [CallWith=ScriptState, RaisesException, MeasureAs=QuicTransport] constructor(USVString url);
// QuicTransport is the first, and at this moment only, transport which is // QuicTransport is the first, and at this moment only, transport which is
// implemented. In the (draft) spec there are many mix-in interfaces which // implemented. In the (draft) spec there are many mix-in interfaces which
// QuicTransport includes, but we define all their methods/attributes here // QuicTransport includes, but we define all their methods/attributes here
...@@ -17,12 +17,12 @@ ...@@ -17,12 +17,12 @@
// From UnidirectionalStreamsTransport // From UnidirectionalStreamsTransport
// TODO(ricea): Change this to Promise<SendStream> once the IDL compiler is // TODO(ricea): Change this to Promise<SendStream> once the IDL compiler is
// fixed. See https://crbug.com/1047113. // fixed. See https://crbug.com/1047113.
[CallWith=ScriptState, RaisesException] Promise<SendStream> [CallWith=ScriptState, RaisesException, MeasureAs=QuicTransportStreamApis] Promise<SendStream>
createSendStream(); createSendStream();
// From DatagramTransport mixin // From DatagramTransport mixin
WritableStream sendDatagrams(); [MeasureAs=QuicTransportDatagramApis] WritableStream sendDatagrams();
ReadableStream receiveDatagrams(); [MeasureAs=QuicTransportDatagramApis] ReadableStream receiveDatagrams();
// From WebTransport mixin // From WebTransport mixin
void close(optional WebTransportCloseInfo closeInfo = {}); void close(optional WebTransportCloseInfo closeInfo = {});
......
...@@ -23458,7 +23458,8 @@ to ensure that the crash string is shown properly on the user-facing crash UI. ...@@ -23458,7 +23458,8 @@ to ensure that the crash string is shown properly on the user-facing crash UI.
</enum> </enum>
<enum name="FeatureObserver"> <enum name="FeatureObserver">
<!-- Generated from third_party/blink/public/mojom/web_feature/web_feature.mojom.--> <!-- Generated from third_party/blink/public/mojom/web_feature/web_feature.mojom.
Called by update_use_counter_feature_enum.py.-->
<int value="0" label="OBSOLETE_PageDestruction"/> <int value="0" label="OBSOLETE_PageDestruction"/>
<int value="1" label="LegacyNotifications"/> <int value="1" label="LegacyNotifications"/>
...@@ -26762,6 +26763,9 @@ to ensure that the crash string is shown properly on the user-facing crash UI. ...@@ -26762,6 +26763,9 @@ to ensure that the crash string is shown properly on the user-facing crash UI.
<int value="3181" label="V8RTCRtpSender_CreateEncodedVideoStreams_Method"/> <int value="3181" label="V8RTCRtpSender_CreateEncodedVideoStreams_Method"/>
<int value="3182" label="V8RTCRtpReceiver_CreateEncodedAudioStreams_Method"/> <int value="3182" label="V8RTCRtpReceiver_CreateEncodedAudioStreams_Method"/>
<int value="3183" label="V8RTCRtpReceiver_CreateEncodedVideoStreams_Method"/> <int value="3183" label="V8RTCRtpReceiver_CreateEncodedVideoStreams_Method"/>
<int value="3184" label="QuicTransport"/>
<int value="3185" label="QuicTransportStreamApis"/>
<int value="3186" label="QuicTransportDatagramApis"/>
</enum> </enum>
<enum name="FeaturePolicyAllowlistType"> <enum name="FeaturePolicyAllowlistType">
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment