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 "JSDOMBindingInternalsBuiltins.h"
40#include "RTCPeerConnectionInternalsBuiltins.h"
41#include "ReadableByteStreamInternalsBuiltins.h"
42#include "ReadableStreamInternalsBuiltins.h"
43#include "StreamInternalsBuiltins.h"
44#include "WritableStreamInternalsBuiltins.h"
45#include <JavaScriptCore/VM.h>
46#include <JavaScriptCore/WeakInlines.h>
47
48namespace WebCore {
49
50class JSDOMGlobalObject;
51
52class JSBuiltinInternalFunctions {
53public:
54 explicit JSBuiltinInternalFunctions(JSC::VM&);
55
56 void visit(JSC::SlotVisitor&);
57 void initialize(JSDOMGlobalObject&);
58
59#if ENABLE(WEB_RTC)
60 RTCPeerConnectionInternalsBuiltinFunctions& rtcPeerConnectionInternals() { return m_rtcPeerConnectionInternals; }
61#endif // ENABLE(WEB_RTC)
62#if ENABLE(STREAMS_API)
63 ReadableByteStreamInternalsBuiltinFunctions& readableByteStreamInternals() { return m_readableByteStreamInternals; }
64#endif // ENABLE(STREAMS_API)
65#if ENABLE(STREAMS_API)
66 ReadableStreamInternalsBuiltinFunctions& readableStreamInternals() { return m_readableStreamInternals; }
67#endif // ENABLE(STREAMS_API)
68#if ENABLE(STREAMS_API)
69 StreamInternalsBuiltinFunctions& streamInternals() { return m_streamInternals; }
70#endif // ENABLE(STREAMS_API)
71#if ENABLE(STREAMS_API)
72 WritableStreamInternalsBuiltinFunctions& writableStreamInternals() { return m_writableStreamInternals; }
73#endif // ENABLE(STREAMS_API)
74 JSDOMBindingInternalsBuiltinFunctions& jsDOMBindingInternals() { return m_jsDOMBindingInternals; }
75
76private:
77 JSC::VM& m_vm;
78#if ENABLE(WEB_RTC)
79 RTCPeerConnectionInternalsBuiltinFunctions m_rtcPeerConnectionInternals;
80#endif // ENABLE(WEB_RTC)
81#if ENABLE(STREAMS_API)
82 ReadableByteStreamInternalsBuiltinFunctions m_readableByteStreamInternals;
83#endif // ENABLE(STREAMS_API)
84#if ENABLE(STREAMS_API)
85 ReadableStreamInternalsBuiltinFunctions m_readableStreamInternals;
86#endif // ENABLE(STREAMS_API)
87#if ENABLE(STREAMS_API)
88 StreamInternalsBuiltinFunctions m_streamInternals;
89#endif // ENABLE(STREAMS_API)
90#if ENABLE(STREAMS_API)
91 WritableStreamInternalsBuiltinFunctions m_writableStreamInternals;
92#endif // ENABLE(STREAMS_API)
93 JSDOMBindingInternalsBuiltinFunctions m_jsDOMBindingInternals;
94};
95
96} // namespace WebCore
97