<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[286464] trunk/Source/WebCore</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/286464">286464</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2021-12-02 16:32:06 -0800 (Thu, 02 Dec 2021)</dd>
</dl>

<h3>Log Message</h3>
<pre>Move Shared Worker classes to WebCore/workers/shared
https://bugs.webkit.org/show_bug.cgi?id=233769

Reviewed by Alex Christensen.

Move Shared Worker classes to WebCore/workers/shared, for better structuring and consistency
with WebCore/workers/service.

* CMakeLists.txt:
* DerivedSources.make:
* WebCore.xcodeproj/project.pbxproj:
* workers/shared/SharedWorker.cpp: Renamed from Source/WebCore/workers/SharedWorker.cpp.
* workers/shared/SharedWorker.h: Renamed from Source/WebCore/workers/SharedWorker.h.
* workers/shared/SharedWorker.idl: Renamed from Source/WebCore/workers/SharedWorker.idl.
* workers/shared/SharedWorkerGlobalScope.cpp: Renamed from Source/WebCore/workers/SharedWorkerGlobalScope.cpp.
* workers/shared/SharedWorkerGlobalScope.h: Renamed from Source/WebCore/workers/SharedWorkerGlobalScope.h.
* workers/shared/SharedWorkerGlobalScope.idl: Renamed from Source/WebCore/workers/SharedWorkerGlobalScope.idl.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreCMakeListstxt">trunk/Source/WebCore/CMakeLists.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreDerivedSourcesinputxcfilelist">trunk/Source/WebCore/DerivedSources-input.xcfilelist</a></li>
<li><a href="#trunkSourceWebCoreDerivedSourcesmake">trunk/Source/WebCore/DerivedSources.make</a></li>
<li><a href="#trunkSourceWebCoreSourcestxt">trunk/Source/WebCore/Sources.txt</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/Source/WebCore/workers/shared/</li>
<li><a href="#trunkSourceWebCoreworkerssharedSharedWorkercpp">trunk/Source/WebCore/workers/shared/SharedWorker.cpp</a></li>
<li><a href="#trunkSourceWebCoreworkerssharedSharedWorkerh">trunk/Source/WebCore/workers/shared/SharedWorker.h</a></li>
<li><a href="#trunkSourceWebCoreworkerssharedSharedWorkeridl">trunk/Source/WebCore/workers/shared/SharedWorker.idl</a></li>
<li><a href="#trunkSourceWebCoreworkerssharedSharedWorkerGlobalScopecpp">trunk/Source/WebCore/workers/shared/SharedWorkerGlobalScope.cpp</a></li>
<li><a href="#trunkSourceWebCoreworkerssharedSharedWorkerGlobalScopeh">trunk/Source/WebCore/workers/shared/SharedWorkerGlobalScope.h</a></li>
<li><a href="#trunkSourceWebCoreworkerssharedSharedWorkerGlobalScopeidl">trunk/Source/WebCore/workers/shared/SharedWorkerGlobalScope.idl</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreworkersSharedWorkercpp">trunk/Source/WebCore/workers/SharedWorker.cpp</a></li>
<li><a href="#trunkSourceWebCoreworkersSharedWorkerh">trunk/Source/WebCore/workers/SharedWorker.h</a></li>
<li><a href="#trunkSourceWebCoreworkersSharedWorkeridl">trunk/Source/WebCore/workers/SharedWorker.idl</a></li>
<li><a href="#trunkSourceWebCoreworkersSharedWorkerGlobalScopecpp">trunk/Source/WebCore/workers/SharedWorkerGlobalScope.cpp</a></li>
<li><a href="#trunkSourceWebCoreworkersSharedWorkerGlobalScopeh">trunk/Source/WebCore/workers/SharedWorkerGlobalScope.h</a></li>
<li><a href="#trunkSourceWebCoreworkersSharedWorkerGlobalScopeidl">trunk/Source/WebCore/workers/SharedWorkerGlobalScope.idl</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreCMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/CMakeLists.txt (286463 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/CMakeLists.txt      2021-12-03 00:14:48 UTC (rev 286463)
+++ trunk/Source/WebCore/CMakeLists.txt 2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -176,6 +176,7 @@
</span><span class="cx">     "${WEBCORE_DIR}/workers/service"
</span><span class="cx">     "${WEBCORE_DIR}/workers/service/context"
</span><span class="cx">     "${WEBCORE_DIR}/workers/service/server"
</span><ins>+    "${WEBCORE_DIR}/workers/shared"
</ins><span class="cx">     "${WEBCORE_DIR}/worklets"
</span><span class="cx">     "${WEBCORE_DIR}/xml"
</span><span class="cx">     "${WEBCORE_DIR}/xml/parser"
</span><span class="lines">@@ -1212,8 +1213,6 @@
</span><span class="cx"> 
</span><span class="cx">     workers/AbstractWorker.idl
</span><span class="cx">     workers/DedicatedWorkerGlobalScope.idl
</span><del>-    workers/SharedWorker.idl
-    workers/SharedWorkerGlobalScope.idl
</del><span class="cx">     workers/Worker.idl
</span><span class="cx">     workers/WorkerGlobalScope.idl
</span><span class="cx">     workers/WorkerLocation.idl
</span><span class="lines">@@ -1236,6 +1235,9 @@
</span><span class="cx">     workers/service/ServiceWorkerUpdateViaCache.idl
</span><span class="cx">     workers/service/ServiceWorkerWindowClient.idl
</span><span class="cx"> 
</span><ins>+    workers/shared/SharedWorker.idl
+    workers/shared/SharedWorkerGlobalScope.idl
+
</ins><span class="cx">     worklets/PaintWorkletGlobalScope.idl
</span><span class="cx">     worklets/Worklet.idl
</span><span class="cx">     worklets/WorkletGlobalScope.idl
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (286463 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog   2021-12-03 00:14:48 UTC (rev 286463)
+++ trunk/Source/WebCore/ChangeLog      2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -1,3 +1,23 @@
</span><ins>+2021-12-02  Chris Dumez  <cdumez@apple.com>
+
+        Move Shared Worker classes to WebCore/workers/shared
+        https://bugs.webkit.org/show_bug.cgi?id=233769
+
+        Reviewed by Alex Christensen.
+
+        Move Shared Worker classes to WebCore/workers/shared, for better structuring and consistency
+        with WebCore/workers/service.
+
+        * CMakeLists.txt:
+        * DerivedSources.make:
+        * WebCore.xcodeproj/project.pbxproj:
+        * workers/shared/SharedWorker.cpp: Renamed from Source/WebCore/workers/SharedWorker.cpp.
+        * workers/shared/SharedWorker.h: Renamed from Source/WebCore/workers/SharedWorker.h.
+        * workers/shared/SharedWorker.idl: Renamed from Source/WebCore/workers/SharedWorker.idl.
+        * workers/shared/SharedWorkerGlobalScope.cpp: Renamed from Source/WebCore/workers/SharedWorkerGlobalScope.cpp.
+        * workers/shared/SharedWorkerGlobalScope.h: Renamed from Source/WebCore/workers/SharedWorkerGlobalScope.h.
+        * workers/shared/SharedWorkerGlobalScope.idl: Renamed from Source/WebCore/workers/SharedWorkerGlobalScope.idl.
+
</ins><span class="cx"> 2021-12-02  Megan Gardner  <megan_gardner@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Re-add support of image control menus.
</span></span></pre></div>
<a id="trunkSourceWebCoreDerivedSourcesinputxcfilelist"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/DerivedSources-input.xcfilelist (286463 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/DerivedSources-input.xcfilelist     2021-12-03 00:14:48 UTC (rev 286463)
+++ trunk/Source/WebCore/DerivedSources-input.xcfilelist        2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -1639,6 +1639,8 @@
</span><span class="cx"> $(PROJECT_DIR)/workers/service/ServiceWorkerRegistration.idl
</span><span class="cx"> $(PROJECT_DIR)/workers/service/ServiceWorkerUpdateViaCache.idl
</span><span class="cx"> $(PROJECT_DIR)/workers/service/ServiceWorkerWindowClient.idl
</span><ins>+$(PROJECT_DIR)/workers/shared/SharedWorker.idl
+$(PROJECT_DIR)/workers/shared/SharedWorkerGlobalScope.idl
</ins><span class="cx"> $(PROJECT_DIR)/worklets/PaintWorkletGlobalScope.idl
</span><span class="cx"> $(PROJECT_DIR)/worklets/Worklet.idl
</span><span class="cx"> $(PROJECT_DIR)/worklets/WorkletGlobalScope.idl
</span></span></pre></div>
<a id="trunkSourceWebCoreDerivedSourcesmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/DerivedSources.make (286463 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/DerivedSources.make 2021-12-03 00:14:48 UTC (rev 286463)
+++ trunk/Source/WebCore/DerivedSources.make    2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -1435,12 +1435,10 @@
</span><span class="cx">     $(WebCore)/testing/XRSimulateUserActivationFunction.idl \
</span><span class="cx">     $(WebCore)/workers/AbstractWorker.idl \
</span><span class="cx">     $(WebCore)/workers/DedicatedWorkerGlobalScope.idl \
</span><del>-    $(WebCore)/workers/SharedWorker.idl \
-    $(WebCore)/workers/SharedWorkerGlobalScope.idl \
</del><span class="cx">     $(WebCore)/workers/Worker.idl \
</span><span class="cx">     $(WebCore)/workers/WorkerGlobalScope.idl \
</span><span class="cx">     $(WebCore)/workers/WorkerLocation.idl \
</span><del>-       $(WebCore)/workers/WorkerOptions.idl \
</del><ins>+    $(WebCore)/workers/WorkerOptions.idl \
</ins><span class="cx">     $(WebCore)/workers/WorkerType.idl \
</span><span class="cx">     $(WebCore)/workers/service/ExtendableEvent.idl \
</span><span class="cx">     $(WebCore)/workers/service/ExtendableEventInit.idl \
</span><span class="lines">@@ -1457,6 +1455,8 @@
</span><span class="cx">     $(WebCore)/workers/service/ServiceWorkerRegistration.idl \
</span><span class="cx">     $(WebCore)/workers/service/ServiceWorkerUpdateViaCache.idl \
</span><span class="cx">     $(WebCore)/workers/service/ServiceWorkerWindowClient.idl \
</span><ins>+    $(WebCore)/workers/shared/SharedWorker.idl \
+    $(WebCore)/workers/shared/SharedWorkerGlobalScope.idl \
</ins><span class="cx">     $(WebCore)/worklets/PaintWorkletGlobalScope.idl \
</span><span class="cx">     $(WebCore)/worklets/Worklet.idl \
</span><span class="cx">     $(WebCore)/worklets/WorkletGlobalScope.idl \
</span></span></pre></div>
<a id="trunkSourceWebCoreSourcestxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Sources.txt (286463 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Sources.txt 2021-12-03 00:14:48 UTC (rev 286463)
+++ trunk/Source/WebCore/Sources.txt    2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -2723,8 +2723,6 @@
</span><span class="cx"> workers/DedicatedWorkerGlobalScope.cpp
</span><span class="cx"> workers/DedicatedWorkerThread.cpp
</span><span class="cx"> workers/ScriptBuffer.cpp
</span><del>-workers/SharedWorker.cpp
-workers/SharedWorkerGlobalScope.cpp
</del><span class="cx"> workers/Worker.cpp
</span><span class="cx"> workers/WorkerAnimationController.cpp
</span><span class="cx"> workers/WorkerConsoleClient.cpp
</span><span class="lines">@@ -2777,6 +2775,8 @@
</span><span class="cx"> workers/service/server/SWServerRegistration.cpp
</span><span class="cx"> workers/service/server/SWServerToContextConnection.cpp
</span><span class="cx"> workers/service/server/SWServerWorker.cpp
</span><ins>+workers/shared/SharedWorker.cpp
+workers/shared/SharedWorkerGlobalScope.cpp
</ins><span class="cx"> worklets/PaintWorkletGlobalScope.cpp
</span><span class="cx"> worklets/Worklet.cpp
</span><span class="cx"> worklets/WorkletGlobalScope.cpp
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (286463 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj   2021-12-03 00:14:48 UTC (rev 286463)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj      2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -9128,6 +9128,12 @@
</span><span class="cx">          465EDD9F222F4EC300B46E16 /* DeviceOrientationOrMotionPermissionState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DeviceOrientationOrMotionPermissionState.h; sourceTree = "<group>"; };
</span><span class="cx">          465EDDA0222F4EC400B46E16 /* DeviceOrientationOrMotionPermissionState.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DeviceOrientationOrMotionPermissionState.idl; sourceTree = "<group>"; };
</span><span class="cx">          466536FA264C8DD100AAD1D7 /* JSAudioNodeCustom.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = JSAudioNodeCustom.cpp; sourceTree = "<group>"; };
</span><ins>+               46694CE02759448C00E3150E /* SharedWorkerGlobalScope.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = SharedWorkerGlobalScope.idl; sourceTree = "<group>"; };
+               46694CE12759448C00E3150E /* SharedWorkerGlobalScope.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SharedWorkerGlobalScope.h; sourceTree = "<group>"; };
+               46694CE22759448D00E3150E /* SharedWorker.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SharedWorker.h; sourceTree = "<group>"; };
+               46694CE32759448D00E3150E /* SharedWorker.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SharedWorker.cpp; sourceTree = "<group>"; };
+               46694CE42759448E00E3150E /* SharedWorkerGlobalScope.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SharedWorkerGlobalScope.cpp; sourceTree = "<group>"; };
+               46694CE52759448E00E3150E /* SharedWorker.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = SharedWorker.idl; sourceTree = "<group>"; };
</ins><span class="cx">           466C2DAB26C73AFB00651931 /* PolicyContainer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PolicyContainer.h; sourceTree = "<group>"; };
</span><span class="cx">          466DC6AB1EDE021D00746224 /* JSDOMRectList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMRectList.cpp; sourceTree = "<group>"; };
</span><span class="cx">          466ED8D21EDE0135005E43F6 /* JSDOMRectList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDOMRectList.h; sourceTree = "<group>"; };
</span><span class="lines">@@ -20576,6 +20582,7 @@
</span><span class="cx">                  isa = PBXGroup;
</span><span class="cx">                  children = (
</span><span class="cx">                          51F175441F3EBBF200C74950 /* service */,
</span><ins>+                               46694CDE2759446D00E3150E /* shared */,
</ins><span class="cx">                           41E1B1CA0FF5986900576B3B /* AbstractWorker.cpp */,
</span><span class="cx">                          41E1B1CB0FF5986900576B3B /* AbstractWorker.h */,
</span><span class="cx">                          41E1B1CC0FF5986900576B3B /* AbstractWorker.idl */,
</span><span class="lines">@@ -21333,6 +21340,19 @@
</span><span class="cx">                  path = "web-locks";
</span><span class="cx">                  sourceTree = "<group>";
</span><span class="cx">          };
</span><ins>+               46694CDE2759446D00E3150E /* shared */ = {
+                       isa = PBXGroup;
+                       children = (
+                               46694CE32759448D00E3150E /* SharedWorker.cpp */,
+                               46694CE22759448D00E3150E /* SharedWorker.h */,
+                               46694CE52759448E00E3150E /* SharedWorker.idl */,
+                               46694CE42759448E00E3150E /* SharedWorkerGlobalScope.cpp */,
+                               46694CE12759448C00E3150E /* SharedWorkerGlobalScope.h */,
+                               46694CE02759448C00E3150E /* SharedWorkerGlobalScope.idl */,
+                       );
+                       path = shared;
+                       sourceTree = "<group>";
+               };
</ins><span class="cx">           49484FAE102CF01E00187DD3 /* canvas */ = {
</span><span class="cx">                  isa = PBXGroup;
</span><span class="cx">                  children = (
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersSharedWorkercpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/workers/SharedWorker.cpp (286463 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/SharedWorker.cpp    2021-12-03 00:14:48 UTC (rev 286463)
+++ trunk/Source/WebCore/workers/SharedWorker.cpp       2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -1,56 +0,0 @@
</span><del>-/*
- * Copyright (C) 2021 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "SharedWorker.h"
-
-#include <wtf/IsoMallocInlines.h>
-
-namespace WebCore {
-
-WTF_MAKE_ISO_ALLOCATED_IMPL(SharedWorker);
-
-SharedWorker::SharedWorker(String&&, std::optional<std::variant<String, WorkerOptions>>&&)
-{
-}
-
-MessagePort* SharedWorker::port() const
-{
-    // FIXME: implement.
-    return nullptr;
-}
-
-ScriptExecutionContext* SharedWorker::scriptExecutionContext() const
-{
-    // FIXME: implement.
-    return nullptr;
-}
-
-EventTargetInterface SharedWorker::eventTargetInterface() const
-{
-    return SharedWorkerEventTargetInterfaceType;
-}
-
-} // namespace WebCore
</del></span></pre></div>
<a id="trunkSourceWebCoreworkersSharedWorkerh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/workers/SharedWorker.h (286463 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/SharedWorker.h      2021-12-03 00:14:48 UTC (rev 286463)
+++ trunk/Source/WebCore/workers/SharedWorker.h 2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -1,48 +0,0 @@
</span><del>-/*
- * Copyright (C) 2021 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#pragma once
-
-#include "AbstractWorker.h"
-#include "WorkerOptions.h"
-
-namespace WebCore {
-
-class MessagePort;
-
-class SharedWorker final : public AbstractWorker {
-    WTF_MAKE_ISO_ALLOCATED(SharedWorker);
-public:
-    static Ref<SharedWorker> create(String&& scriptURL, std::optional<std::variant<String, WorkerOptions>>&& options) { return adoptRef(*new SharedWorker(WTFMove(scriptURL), WTFMove(options))); }
-
-    MessagePort* port() const;
-private:
-    SharedWorker(String&&, std::optional<std::variant<String, WorkerOptions>>&&);
-
-    EventTargetInterface eventTargetInterface() const final;
-    ScriptExecutionContext* scriptExecutionContext() const final;
-};
-
-} // namespace WebCore
</del></span></pre></div>
<a id="trunkSourceWebCoreworkersSharedWorkeridl"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/workers/SharedWorker.idl (286463 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/SharedWorker.idl    2021-12-03 00:14:48 UTC (rev 286463)
+++ trunk/Source/WebCore/workers/SharedWorker.idl       2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -1,34 +0,0 @@
</span><del>-/*
- * Copyright (C) 2021 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-[
-    EnabledBySetting=SharedWorkerEnabled,
-    Exposed=Window
-]
-interface SharedWorker : EventTarget {
-  constructor(USVString scriptURL, optional (DOMString or WorkerOptions) options);
-
-  readonly attribute MessagePort port;
-};
-SharedWorker includes AbstractWorker;
</del></span></pre></div>
<a id="trunkSourceWebCoreworkersSharedWorkerGlobalScopecpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/workers/SharedWorkerGlobalScope.cpp (286463 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/SharedWorkerGlobalScope.cpp 2021-12-03 00:14:48 UTC (rev 286463)
+++ trunk/Source/WebCore/workers/SharedWorkerGlobalScope.cpp    2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -1,46 +0,0 @@
</span><del>-/*
- * Copyright (C) 2021 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "SharedWorkerGlobalScope.h"
-
-#include <wtf/IsoMallocInlines.h>
-
-namespace WebCore {
-
-WTF_MAKE_ISO_ALLOCATED_IMPL(SharedWorkerGlobalScope);
-
-const String& SharedWorkerGlobalScope::name() const
-{
-    // FIXME: Implement.
-    return emptyString();
-}
-
-void SharedWorkerGlobalScope::close()
-{
-    // FIXME: Implement.
-}
-
-} // namespace WebCore
</del></span></pre></div>
<a id="trunkSourceWebCoreworkersSharedWorkerGlobalScopeh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/workers/SharedWorkerGlobalScope.h (286463 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/SharedWorkerGlobalScope.h   2021-12-03 00:14:48 UTC (rev 286463)
+++ trunk/Source/WebCore/workers/SharedWorkerGlobalScope.h      2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -1,48 +0,0 @@
</span><del>-/*
- * Copyright (C) 2021 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#pragma once
-
-#include "WorkerGlobalScope.h"
-
-namespace WebCore {
-
-class SharedWorkerGlobalScope final : public WorkerGlobalScope {
-    WTF_MAKE_ISO_ALLOCATED(SharedWorkerGlobalScope);
-public:
-    bool isSharedWorkerGlobalScope() const final { return true; }
-    const String& name() const;
-    void close();
-private:
-    EventTargetInterface eventTargetInterface() const final;
-    FetchOptions::Destination destination() const final;
-};
-
-} // namespace WebCore
-
-SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::SharedWorkerGlobalScope)
-    static bool isType(const WebCore::ScriptExecutionContext& context) { return is<WebCore::WorkerGlobalScope>(context) && downcast<WebCore::WorkerGlobalScope>(context).isSharedWorkerGlobalScope(); }
-    static bool isType(const WebCore::WorkerGlobalScope& context) { return context.isSharedWorkerGlobalScope(); }
-SPECIALIZE_TYPE_TRAITS_END()
</del></span></pre></div>
<a id="trunkSourceWebCoreworkersSharedWorkerGlobalScopeidl"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/workers/SharedWorkerGlobalScope.idl (286463 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/SharedWorkerGlobalScope.idl 2021-12-03 00:14:48 UTC (rev 286463)
+++ trunk/Source/WebCore/workers/SharedWorkerGlobalScope.idl    2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -1,38 +0,0 @@
</span><del>-/*
- * Copyright (C) 2021 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-[
-    EnabledBySetting=SharedWorkerEnabled,
-    Global=(Worker,SharedWorker),
-    Exposed=SharedWorker,
-    JSGenerateToNativeObject,
-]
-interface SharedWorkerGlobalScope : WorkerGlobalScope {
-  [Replaceable] readonly attribute DOMString name;
-
-  undefined close();
-
-  attribute EventHandler onconnect;
-};
</del></span></pre></div>
<a id="trunkSourceWebCoreworkerssharedSharedWorkercppfromrev286462trunkSourceWebCoreworkersSharedWorkercpp"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebCore/workers/shared/SharedWorker.cpp (from rev 286462, trunk/Source/WebCore/workers/SharedWorker.cpp) (0 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/shared/SharedWorker.cpp                             (rev 0)
+++ trunk/Source/WebCore/workers/shared/SharedWorker.cpp        2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -0,0 +1,56 @@
</span><ins>+/*
+ * Copyright (C) 2021 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "SharedWorker.h"
+
+#include <wtf/IsoMallocInlines.h>
+
+namespace WebCore {
+
+WTF_MAKE_ISO_ALLOCATED_IMPL(SharedWorker);
+
+SharedWorker::SharedWorker(String&&, std::optional<std::variant<String, WorkerOptions>>&&)
+{
+}
+
+MessagePort* SharedWorker::port() const
+{
+    // FIXME: implement.
+    return nullptr;
+}
+
+ScriptExecutionContext* SharedWorker::scriptExecutionContext() const
+{
+    // FIXME: implement.
+    return nullptr;
+}
+
+EventTargetInterface SharedWorker::eventTargetInterface() const
+{
+    return SharedWorkerEventTargetInterfaceType;
+}
+
+} // namespace WebCore
</ins></span></pre></div>
<a id="trunkSourceWebCoreworkerssharedSharedWorkerhfromrev286462trunkSourceWebCoreworkersSharedWorkerh"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebCore/workers/shared/SharedWorker.h (from rev 286462, trunk/Source/WebCore/workers/SharedWorker.h) (0 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/shared/SharedWorker.h                               (rev 0)
+++ trunk/Source/WebCore/workers/shared/SharedWorker.h  2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -0,0 +1,48 @@
</span><ins>+/*
+ * Copyright (C) 2021 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#pragma once
+
+#include "AbstractWorker.h"
+#include "WorkerOptions.h"
+
+namespace WebCore {
+
+class MessagePort;
+
+class SharedWorker final : public AbstractWorker {
+    WTF_MAKE_ISO_ALLOCATED(SharedWorker);
+public:
+    static Ref<SharedWorker> create(String&& scriptURL, std::optional<std::variant<String, WorkerOptions>>&& options) { return adoptRef(*new SharedWorker(WTFMove(scriptURL), WTFMove(options))); }
+
+    MessagePort* port() const;
+private:
+    SharedWorker(String&&, std::optional<std::variant<String, WorkerOptions>>&&);
+
+    EventTargetInterface eventTargetInterface() const final;
+    ScriptExecutionContext* scriptExecutionContext() const final;
+};
+
+} // namespace WebCore
</ins></span></pre></div>
<a id="trunkSourceWebCoreworkerssharedSharedWorkeridlfromrev286462trunkSourceWebCoreworkersSharedWorkeridl"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebCore/workers/shared/SharedWorker.idl (from rev 286462, trunk/Source/WebCore/workers/SharedWorker.idl) (0 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/shared/SharedWorker.idl                             (rev 0)
+++ trunk/Source/WebCore/workers/shared/SharedWorker.idl        2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+/*
+ * Copyright (C) 2021 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+[
+    EnabledBySetting=SharedWorkerEnabled,
+    Exposed=Window
+]
+interface SharedWorker : EventTarget {
+  constructor(USVString scriptURL, optional (DOMString or WorkerOptions) options);
+
+  readonly attribute MessagePort port;
+};
+SharedWorker includes AbstractWorker;
</ins></span></pre></div>
<a id="trunkSourceWebCoreworkerssharedSharedWorkerGlobalScopecppfromrev286462trunkSourceWebCoreworkersSharedWorkerGlobalScopecpp"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebCore/workers/shared/SharedWorkerGlobalScope.cpp (from rev 286462, trunk/Source/WebCore/workers/SharedWorkerGlobalScope.cpp) (0 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/shared/SharedWorkerGlobalScope.cpp                          (rev 0)
+++ trunk/Source/WebCore/workers/shared/SharedWorkerGlobalScope.cpp     2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -0,0 +1,46 @@
</span><ins>+/*
+ * Copyright (C) 2021 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "SharedWorkerGlobalScope.h"
+
+#include <wtf/IsoMallocInlines.h>
+
+namespace WebCore {
+
+WTF_MAKE_ISO_ALLOCATED_IMPL(SharedWorkerGlobalScope);
+
+const String& SharedWorkerGlobalScope::name() const
+{
+    // FIXME: Implement.
+    return emptyString();
+}
+
+void SharedWorkerGlobalScope::close()
+{
+    // FIXME: Implement.
+}
+
+} // namespace WebCore
</ins></span></pre></div>
<a id="trunkSourceWebCoreworkerssharedSharedWorkerGlobalScopehfromrev286462trunkSourceWebCoreworkersSharedWorkerGlobalScopeh"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebCore/workers/shared/SharedWorkerGlobalScope.h (from rev 286462, trunk/Source/WebCore/workers/SharedWorkerGlobalScope.h) (0 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/shared/SharedWorkerGlobalScope.h                            (rev 0)
+++ trunk/Source/WebCore/workers/shared/SharedWorkerGlobalScope.h       2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -0,0 +1,48 @@
</span><ins>+/*
+ * Copyright (C) 2021 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#pragma once
+
+#include "WorkerGlobalScope.h"
+
+namespace WebCore {
+
+class SharedWorkerGlobalScope final : public WorkerGlobalScope {
+    WTF_MAKE_ISO_ALLOCATED(SharedWorkerGlobalScope);
+public:
+    bool isSharedWorkerGlobalScope() const final { return true; }
+    const String& name() const;
+    void close();
+private:
+    EventTargetInterface eventTargetInterface() const final;
+    FetchOptions::Destination destination() const final;
+};
+
+} // namespace WebCore
+
+SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::SharedWorkerGlobalScope)
+    static bool isType(const WebCore::ScriptExecutionContext& context) { return is<WebCore::WorkerGlobalScope>(context) && downcast<WebCore::WorkerGlobalScope>(context).isSharedWorkerGlobalScope(); }
+    static bool isType(const WebCore::WorkerGlobalScope& context) { return context.isSharedWorkerGlobalScope(); }
+SPECIALIZE_TYPE_TRAITS_END()
</ins></span></pre></div>
<a id="trunkSourceWebCoreworkerssharedSharedWorkerGlobalScopeidlfromrev286462trunkSourceWebCoreworkersSharedWorkerGlobalScopeidl"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebCore/workers/shared/SharedWorkerGlobalScope.idl (from rev 286462, trunk/Source/WebCore/workers/SharedWorkerGlobalScope.idl) (0 => 286464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/shared/SharedWorkerGlobalScope.idl                          (rev 0)
+++ trunk/Source/WebCore/workers/shared/SharedWorkerGlobalScope.idl     2021-12-03 00:32:06 UTC (rev 286464)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+/*
+ * Copyright (C) 2021 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+[
+    EnabledBySetting=SharedWorkerEnabled,
+    Global=(Worker,SharedWorker),
+    Exposed=SharedWorker,
+    JSGenerateToNativeObject,
+]
+interface SharedWorkerGlobalScope : WorkerGlobalScope {
+  [Replaceable] readonly attribute DOMString name;
+
+  undefined close();
+
+  attribute EventHandler onconnect;
+};
</ins></span></pre>
</div>
</div>

</body>
</html>