Implement ByteLengthQueuingStrategy

This implements the ByteLengthQueuingStrategy class, using experimental V8
extras (so that it will only show up with experimental web platform features
enabled). It is a very simple initial step toward implementing ReadableStream
using the same mechanisms.

BUG=503491
R=yhirano@chromium.org,tyoshino@chromium.org,jochen@chromium.org

Review URL: https://codereview.chromium.org/1378213002

Cr-Original-Commit-Position: refs/heads/master@{#352951}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f630fa0f19dec2f48f4cdd1fcc94488ebe6d3d9e
This commit is contained in:
domenic 2015-10-07 14:45:51 -07:00 коммит произвёл Commit bot
Родитель 48a7605e24
Коммит 1c9b1da178
2 изменённых файлов: 16 добавлений и 1 удалений

Просмотреть файл

@ -1515,6 +1515,16 @@
# Compile d8 for the host toolset. # Compile d8 for the host toolset.
'v8_toolset_for_d8': 'host', 'v8_toolset_for_d8': 'host',
# V8 extras
# Adding V8 extras files requires API owners review
# Be sure to synchronize with build/module_args/v8.gni
'v8_extra_library_files': [
],
'v8_experimental_extra_library_files': [
'../third_party/WebKit/Source/core/streams/ByteLengthQueuingStrategy.js',
],
# Use brlapi from brltty for braille display support. # Use brlapi from brltty for braille display support.
'use_brlapi%': 0, 'use_brlapi%': 0,

Просмотреть файл

@ -11,5 +11,10 @@ enable_correct_v8_arch = false
v8_use_external_startup_data = !(is_chromeos || is_win || is_ios) v8_use_external_startup_data = !(is_chromeos || is_win || is_ios)
# V8 extras
# Adding V8 extras files requires API owners review
# Be sure to synchronize with build/common.gypi
v8_extra_library_files = [] v8_extra_library_files = []
v8_experimental_extra_library_files = [] v8_experimental_extra_library_files =
[ "../third_party/WebKit/Source/core/streams/ByteLengthQueuingStrategy.js" ]