Commit 8b096f7a authored by Adam Rice's avatar Adam Rice Committed by Commit Bot

Use counters for Streams Strategies

Add use counters for the constructors of CountQueuingStrategy and
ByteLengthQueuingStrategy. This will help us evaluate their usage, with a view
to possibly deprecating them. See
https://github.com/whatwg/streams/issues/1005#issuecomment-549184328.

Change-Id: I633ab863fd93da8e74ecdd7001815d6a1728c82b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1899236Reviewed-by: default avatarYutaka Hirano <yhirano@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712498}
parent a078d9ff
...@@ -2463,6 +2463,8 @@ enum WebFeature { ...@@ -2463,6 +2463,8 @@ enum WebFeature {
kUpgradeInsecureRequestsUpgradedRequestForm = 3079, kUpgradeInsecureRequestsUpgradedRequestForm = 3079,
kUpgradeInsecureRequestsUpgradedRequestUnknown = 3080, kUpgradeInsecureRequestsUpgradedRequestUnknown = 3080,
kHasGlyphRelativeUnits = 3081, kHasGlyphRelativeUnits = 3081,
kCountQueuingStrategyConstructor = 3082,
kByteLengthQueuingStrategyConstructor = 3083,
// 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.
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
[ [
Exposed=(Window,Worker,Worklet), Exposed=(Window,Worker,Worklet),
ConstructorCallWith=ScriptState, ConstructorCallWith=ScriptState,
Constructor([PermissiveDictionaryConversion] QueuingStrategyInit init) Constructor([PermissiveDictionaryConversion] QueuingStrategyInit init),
MeasureAs=ByteLengthQueuingStrategyConstructor
] interface ByteLengthQueuingStrategy { ] interface ByteLengthQueuingStrategy {
[CallWith=ScriptState] readonly attribute any highWaterMark; [CallWith=ScriptState] readonly attribute any highWaterMark;
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
[ [
Exposed=(Window,Worker,Worklet), Exposed=(Window,Worker,Worklet),
ConstructorCallWith=ScriptState, ConstructorCallWith=ScriptState,
Constructor([PermissiveDictionaryConversion] QueuingStrategyInit init) Constructor([PermissiveDictionaryConversion] QueuingStrategyInit init),
MeasureAs=CountQueuingStrategyConstructor
] interface CountQueuingStrategy { ] interface CountQueuingStrategy {
[CallWith=ScriptState] readonly attribute any highWaterMark; [CallWith=ScriptState] readonly attribute any highWaterMark;
......
...@@ -25349,6 +25349,8 @@ Called by update_net_error_codes.py.--> ...@@ -25349,6 +25349,8 @@ Called by update_net_error_codes.py.-->
<int value="3079" label="UpgradeInsecureRequestsUpgradedRequestForm"/> <int value="3079" label="UpgradeInsecureRequestsUpgradedRequestForm"/>
<int value="3080" label="UpgradeInsecureRequestsUpgradedRequestUnknown"/> <int value="3080" label="UpgradeInsecureRequestsUpgradedRequestUnknown"/>
<int value="3081" label="HasGlyphRelativeUnits"/> <int value="3081" label="HasGlyphRelativeUnits"/>
<int value="3082" label="CountQueuingStrategyConstructor"/>
<int value="3083" label="ByteLengthQueuingStrategyConstructor"/>
</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