| 1 | /* |
| 2 | * Copyright (c) 2015 Igalia |
| 3 | * Copyright (c) 2015 Igalia S.L. |
| 4 | * Copyright (c) 2015 Igalia. |
| 5 | * Copyright (c) 2015, 2016 Canon Inc. All rights reserved. |
| 6 | * Copyright (c) 2015, 2016 Ericsson AB. All rights reserved. |
| 7 | * Copyright (c) 2015, 2016, 2017 Canon Inc. |
| 8 | * Copyright (c) 2016 Apple Inc. All rights reserved. |
| 9 | * Copyright (c) 2017 Apple Inc. |
| 10 | * |
| 11 | * Redistribution and use in source and binary forms, with or without |
| 12 | * modification, are permitted provided that the following conditions |
| 13 | * are met: |
| 14 | * 1. Redistributions of source code must retain the above copyright |
| 15 | * notice, this list of conditions and the following disclaimer. |
| 16 | * 2. Redistributions in binary form must reproduce the above copyright |
| 17 | * notice, this list of conditions and the following disclaimer in the |
| 18 | * documentation and/or other materials provided with the distribution. |
| 19 | * |
| 20 | * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' |
| 21 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| 22 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 23 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS |
| 24 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 25 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 26 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 29 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
| 30 | * THE POSSIBILITY OF SUCH DAMAGE. |
| 31 | * |
| 32 | */ |
| 33 | |
| 34 | // DO NOT EDIT THIS FILE. It is automatically generated from JavaScript files for |
| 35 | // builtins by the script: Source/JavaScriptCore/Scripts/generate-js-builtins.py |
| 36 | |
| 37 | #pragma once |
| 38 | |
| 39 | #include "ByteLengthQueuingStrategyBuiltins.h" |
| 40 | #include "CountQueuingStrategyBuiltins.h" |
| 41 | #include "JSDOMBindingInternalsBuiltins.h" |
| 42 | #include "RTCPeerConnectionBuiltins.h" |
| 43 | #include "RTCPeerConnectionInternalsBuiltins.h" |
| 44 | #include "ReadableByteStreamControllerBuiltins.h" |
| 45 | #include "ReadableByteStreamInternalsBuiltins.h" |
| 46 | #include "ReadableStreamBYOBReaderBuiltins.h" |
| 47 | #include "ReadableStreamBYOBRequestBuiltins.h" |
| 48 | #include "ReadableStreamBuiltins.h" |
| 49 | #include "ReadableStreamDefaultControllerBuiltins.h" |
| 50 | #include "ReadableStreamDefaultReaderBuiltins.h" |
| 51 | #include "ReadableStreamInternalsBuiltins.h" |
| 52 | #include "StreamInternalsBuiltins.h" |
| 53 | #include "WritableStreamBuiltins.h" |
| 54 | #include "WritableStreamInternalsBuiltins.h" |
| 55 | #include <JavaScriptCore/VM.h> |
| 56 | |
| 57 | namespace WebCore { |
| 58 | |
| 59 | class JSBuiltinFunctions { |
| 60 | public: |
| 61 | explicit JSBuiltinFunctions(JSC::VM& vm) |
| 62 | : m_vm(vm) |
| 63 | #if ENABLE(WEB_RTC) |
| 64 | , m_rtcPeerConnectionBuiltins(&m_vm) |
| 65 | #endif // ENABLE(WEB_RTC) |
| 66 | #if ENABLE(WEB_RTC) |
| 67 | , m_rtcPeerConnectionInternalsBuiltins(&m_vm) |
| 68 | #endif // ENABLE(WEB_RTC) |
| 69 | #if ENABLE(STREAMS_API) |
| 70 | , m_byteLengthQueuingStrategyBuiltins(&m_vm) |
| 71 | #endif // ENABLE(STREAMS_API) |
| 72 | #if ENABLE(STREAMS_API) |
| 73 | , m_countQueuingStrategyBuiltins(&m_vm) |
| 74 | #endif // ENABLE(STREAMS_API) |
| 75 | #if ENABLE(STREAMS_API) |
| 76 | , m_readableByteStreamControllerBuiltins(&m_vm) |
| 77 | #endif // ENABLE(STREAMS_API) |
| 78 | #if ENABLE(STREAMS_API) |
| 79 | , m_readableByteStreamInternalsBuiltins(&m_vm) |
| 80 | #endif // ENABLE(STREAMS_API) |
| 81 | #if ENABLE(STREAMS_API) |
| 82 | , m_readableStreamBuiltins(&m_vm) |
| 83 | #endif // ENABLE(STREAMS_API) |
| 84 | #if ENABLE(STREAMS_API) |
| 85 | , m_readableStreamBYOBReaderBuiltins(&m_vm) |
| 86 | #endif // ENABLE(STREAMS_API) |
| 87 | #if ENABLE(STREAMS_API) |
| 88 | , m_readableStreamBYOBRequestBuiltins(&m_vm) |
| 89 | #endif // ENABLE(STREAMS_API) |
| 90 | #if ENABLE(STREAMS_API) |
| 91 | , m_readableStreamDefaultControllerBuiltins(&m_vm) |
| 92 | #endif // ENABLE(STREAMS_API) |
| 93 | #if ENABLE(STREAMS_API) |
| 94 | , m_readableStreamDefaultReaderBuiltins(&m_vm) |
| 95 | #endif // ENABLE(STREAMS_API) |
| 96 | #if ENABLE(STREAMS_API) |
| 97 | , m_readableStreamInternalsBuiltins(&m_vm) |
| 98 | #endif // ENABLE(STREAMS_API) |
| 99 | #if ENABLE(STREAMS_API) |
| 100 | , m_streamInternalsBuiltins(&m_vm) |
| 101 | #endif // ENABLE(STREAMS_API) |
| 102 | #if ENABLE(STREAMS_API) |
| 103 | , m_writableStreamBuiltins(&m_vm) |
| 104 | #endif // ENABLE(STREAMS_API) |
| 105 | #if ENABLE(STREAMS_API) |
| 106 | , m_writableStreamInternalsBuiltins(&m_vm) |
| 107 | #endif // ENABLE(STREAMS_API) |
| 108 | , m_jsDOMBindingInternalsBuiltins(&m_vm) |
| 109 | { |
| 110 | #if ENABLE(WEB_RTC) |
| 111 | m_rtcPeerConnectionInternalsBuiltins.exportNames(); |
| 112 | #endif // ENABLE(WEB_RTC) |
| 113 | #if ENABLE(STREAMS_API) |
| 114 | m_readableByteStreamInternalsBuiltins.exportNames(); |
| 115 | #endif // ENABLE(STREAMS_API) |
| 116 | #if ENABLE(STREAMS_API) |
| 117 | m_readableStreamInternalsBuiltins.exportNames(); |
| 118 | #endif // ENABLE(STREAMS_API) |
| 119 | #if ENABLE(STREAMS_API) |
| 120 | m_streamInternalsBuiltins.exportNames(); |
| 121 | #endif // ENABLE(STREAMS_API) |
| 122 | #if ENABLE(STREAMS_API) |
| 123 | m_writableStreamInternalsBuiltins.exportNames(); |
| 124 | #endif // ENABLE(STREAMS_API) |
| 125 | m_jsDOMBindingInternalsBuiltins.exportNames(); |
| 126 | } |
| 127 | |
| 128 | #if ENABLE(WEB_RTC) |
| 129 | RTCPeerConnectionBuiltinsWrapper& rtcPeerConnectionBuiltins() { return m_rtcPeerConnectionBuiltins; } |
| 130 | #endif // ENABLE(WEB_RTC) |
| 131 | #if ENABLE(WEB_RTC) |
| 132 | RTCPeerConnectionInternalsBuiltinsWrapper& rtcPeerConnectionInternalsBuiltins() { return m_rtcPeerConnectionInternalsBuiltins; } |
| 133 | #endif // ENABLE(WEB_RTC) |
| 134 | #if ENABLE(STREAMS_API) |
| 135 | ByteLengthQueuingStrategyBuiltinsWrapper& byteLengthQueuingStrategyBuiltins() { return m_byteLengthQueuingStrategyBuiltins; } |
| 136 | #endif // ENABLE(STREAMS_API) |
| 137 | #if ENABLE(STREAMS_API) |
| 138 | CountQueuingStrategyBuiltinsWrapper& countQueuingStrategyBuiltins() { return m_countQueuingStrategyBuiltins; } |
| 139 | #endif // ENABLE(STREAMS_API) |
| 140 | #if ENABLE(STREAMS_API) |
| 141 | ReadableByteStreamControllerBuiltinsWrapper& readableByteStreamControllerBuiltins() { return m_readableByteStreamControllerBuiltins; } |
| 142 | #endif // ENABLE(STREAMS_API) |
| 143 | #if ENABLE(STREAMS_API) |
| 144 | ReadableByteStreamInternalsBuiltinsWrapper& readableByteStreamInternalsBuiltins() { return m_readableByteStreamInternalsBuiltins; } |
| 145 | #endif // ENABLE(STREAMS_API) |
| 146 | #if ENABLE(STREAMS_API) |
| 147 | ReadableStreamBuiltinsWrapper& readableStreamBuiltins() { return m_readableStreamBuiltins; } |
| 148 | #endif // ENABLE(STREAMS_API) |
| 149 | #if ENABLE(STREAMS_API) |
| 150 | ReadableStreamBYOBReaderBuiltinsWrapper& readableStreamBYOBReaderBuiltins() { return m_readableStreamBYOBReaderBuiltins; } |
| 151 | #endif // ENABLE(STREAMS_API) |
| 152 | #if ENABLE(STREAMS_API) |
| 153 | ReadableStreamBYOBRequestBuiltinsWrapper& readableStreamBYOBRequestBuiltins() { return m_readableStreamBYOBRequestBuiltins; } |
| 154 | #endif // ENABLE(STREAMS_API) |
| 155 | #if ENABLE(STREAMS_API) |
| 156 | ReadableStreamDefaultControllerBuiltinsWrapper& readableStreamDefaultControllerBuiltins() { return m_readableStreamDefaultControllerBuiltins; } |
| 157 | #endif // ENABLE(STREAMS_API) |
| 158 | #if ENABLE(STREAMS_API) |
| 159 | ReadableStreamDefaultReaderBuiltinsWrapper& readableStreamDefaultReaderBuiltins() { return m_readableStreamDefaultReaderBuiltins; } |
| 160 | #endif // ENABLE(STREAMS_API) |
| 161 | #if ENABLE(STREAMS_API) |
| 162 | ReadableStreamInternalsBuiltinsWrapper& readableStreamInternalsBuiltins() { return m_readableStreamInternalsBuiltins; } |
| 163 | #endif // ENABLE(STREAMS_API) |
| 164 | #if ENABLE(STREAMS_API) |
| 165 | StreamInternalsBuiltinsWrapper& streamInternalsBuiltins() { return m_streamInternalsBuiltins; } |
| 166 | #endif // ENABLE(STREAMS_API) |
| 167 | #if ENABLE(STREAMS_API) |
| 168 | WritableStreamBuiltinsWrapper& writableStreamBuiltins() { return m_writableStreamBuiltins; } |
| 169 | #endif // ENABLE(STREAMS_API) |
| 170 | #if ENABLE(STREAMS_API) |
| 171 | WritableStreamInternalsBuiltinsWrapper& writableStreamInternalsBuiltins() { return m_writableStreamInternalsBuiltins; } |
| 172 | #endif // ENABLE(STREAMS_API) |
| 173 | JSDOMBindingInternalsBuiltinsWrapper& jsDOMBindingInternalsBuiltins() { return m_jsDOMBindingInternalsBuiltins; } |
| 174 | |
| 175 | private: |
| 176 | JSC::VM& m_vm; |
| 177 | #if ENABLE(WEB_RTC) |
| 178 | RTCPeerConnectionBuiltinsWrapper m_rtcPeerConnectionBuiltins; |
| 179 | #endif // ENABLE(WEB_RTC) |
| 180 | #if ENABLE(WEB_RTC) |
| 181 | RTCPeerConnectionInternalsBuiltinsWrapper m_rtcPeerConnectionInternalsBuiltins; |
| 182 | #endif // ENABLE(WEB_RTC) |
| 183 | #if ENABLE(STREAMS_API) |
| 184 | ByteLengthQueuingStrategyBuiltinsWrapper m_byteLengthQueuingStrategyBuiltins; |
| 185 | #endif // ENABLE(STREAMS_API) |
| 186 | #if ENABLE(STREAMS_API) |
| 187 | CountQueuingStrategyBuiltinsWrapper m_countQueuingStrategyBuiltins; |
| 188 | #endif // ENABLE(STREAMS_API) |
| 189 | #if ENABLE(STREAMS_API) |
| 190 | ReadableByteStreamControllerBuiltinsWrapper m_readableByteStreamControllerBuiltins; |
| 191 | #endif // ENABLE(STREAMS_API) |
| 192 | #if ENABLE(STREAMS_API) |
| 193 | ReadableByteStreamInternalsBuiltinsWrapper m_readableByteStreamInternalsBuiltins; |
| 194 | #endif // ENABLE(STREAMS_API) |
| 195 | #if ENABLE(STREAMS_API) |
| 196 | ReadableStreamBuiltinsWrapper m_readableStreamBuiltins; |
| 197 | #endif // ENABLE(STREAMS_API) |
| 198 | #if ENABLE(STREAMS_API) |
| 199 | ReadableStreamBYOBReaderBuiltinsWrapper m_readableStreamBYOBReaderBuiltins; |
| 200 | #endif // ENABLE(STREAMS_API) |
| 201 | #if ENABLE(STREAMS_API) |
| 202 | ReadableStreamBYOBRequestBuiltinsWrapper m_readableStreamBYOBRequestBuiltins; |
| 203 | #endif // ENABLE(STREAMS_API) |
| 204 | #if ENABLE(STREAMS_API) |
| 205 | ReadableStreamDefaultControllerBuiltinsWrapper m_readableStreamDefaultControllerBuiltins; |
| 206 | #endif // ENABLE(STREAMS_API) |
| 207 | #if ENABLE(STREAMS_API) |
| 208 | ReadableStreamDefaultReaderBuiltinsWrapper m_readableStreamDefaultReaderBuiltins; |
| 209 | #endif // ENABLE(STREAMS_API) |
| 210 | #if ENABLE(STREAMS_API) |
| 211 | ReadableStreamInternalsBuiltinsWrapper m_readableStreamInternalsBuiltins; |
| 212 | #endif // ENABLE(STREAMS_API) |
| 213 | #if ENABLE(STREAMS_API) |
| 214 | StreamInternalsBuiltinsWrapper m_streamInternalsBuiltins; |
| 215 | #endif // ENABLE(STREAMS_API) |
| 216 | #if ENABLE(STREAMS_API) |
| 217 | WritableStreamBuiltinsWrapper m_writableStreamBuiltins; |
| 218 | #endif // ENABLE(STREAMS_API) |
| 219 | #if ENABLE(STREAMS_API) |
| 220 | WritableStreamInternalsBuiltinsWrapper m_writableStreamInternalsBuiltins; |
| 221 | #endif // ENABLE(STREAMS_API) |
| 222 | JSDOMBindingInternalsBuiltinsWrapper m_jsDOMBindingInternalsBuiltins; |
| 223 | }; |
| 224 | |
| 225 | } // namespace WebCore |
| 226 | |