Commit 6a29f7e7 authored by Adam Rice's avatar Adam Rice Committed by Commit Bot

Add use counters for compression streams

Count use of the constructors of CompressionStream and
DecompressionStream.

BUG=999091

Change-Id: I5581425016d270f173d189c980cbf5cbca4c40e3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1855549Reviewed-by: default avatarYutaka Hirano <yhirano@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#705849}
parent 3fc184d5
...@@ -2441,6 +2441,8 @@ enum WebFeature { ...@@ -2441,6 +2441,8 @@ enum WebFeature {
kNonOriginCleanImageBitmapSerialization = 3057, kNonOriginCleanImageBitmapSerialization = 3057,
kOriginCleanImageBitmapTransfer = 3058, kOriginCleanImageBitmapTransfer = 3058,
kNonOriginCleanImageBitmapTransfer = 3059, kNonOriginCleanImageBitmapTransfer = 3059,
kCompressionStreamConstructor = 3060,
kDecompressionStreamConstructor = 3061,
// 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.
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
Constructor(DOMString format), Constructor(DOMString format),
ConstructorCallWith=ScriptState, ConstructorCallWith=ScriptState,
RuntimeEnabled=CompressionStreams, RuntimeEnabled=CompressionStreams,
RaisesException=Constructor RaisesException=Constructor,
MeasureAs=CompressionStreamConstructor
] interface CompressionStream { ] interface CompressionStream {
readonly attribute ReadableStream readable; readonly attribute ReadableStream readable;
readonly attribute WritableStream writable; readonly attribute WritableStream writable;
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
Constructor(DOMString format), Constructor(DOMString format),
ConstructorCallWith=ScriptState, ConstructorCallWith=ScriptState,
RaisesException=Constructor, RaisesException=Constructor,
RuntimeEnabled=CompressionStreams RuntimeEnabled=CompressionStreams,
MeasureAs=DecompressionStreamConstructor
] interface DecompressionStream { ] interface DecompressionStream {
readonly attribute ReadableStream readable; readonly attribute ReadableStream readable;
readonly attribute WritableStream writable; readonly attribute WritableStream writable;
......
...@@ -24962,6 +24962,8 @@ Called by update_net_error_codes.py.--> ...@@ -24962,6 +24962,8 @@ Called by update_net_error_codes.py.-->
<int value="3057" label="NonOriginCleanImageBitmapSerialization"/> <int value="3057" label="NonOriginCleanImageBitmapSerialization"/>
<int value="3058" label="OriginCleanImageBitmapTransfer"/> <int value="3058" label="OriginCleanImageBitmapTransfer"/>
<int value="3059" label="NonOriginCleanImageBitmapTransfer"/> <int value="3059" label="NonOriginCleanImageBitmapTransfer"/>
<int value="3060" label="CompressionStreamConstructor"/>
<int value="3061" label="DecompressionStreamConstructor"/>
</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