Rename WorkerContext to WorkerGlobalScope

https://bugs.webkit.org/show_bug.cgi?id=118059

Reviewed by Kentaro Hara.

Source/WebCore:

Rename WorkerContext / SharedWorkerContext / DedicatedWorkerContext to
WorkerGlobalScope / SharedWorkerGlobalScope / DedicatedWorkerGlobalScope
to match the latest specification:
http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#workerglobalscope

Those interfaces have [NoInterfaceObject] IDL extended attribute so the
name did not matter much so far. However, the specification was updated
and [NoInterfaceObject] was removed. We should therefore rename those
interfaces as a preparation for this change.

No new tests, no behavior change as these interfaces are not exposed to
JavaScript yet.

* CMakeLists.txt:
* DerivedSources.cpp:
* DerivedSources.make:
* DerivedSources.pri:
* GNUmakefile.am:
* GNUmakefile.list.am:
* Modules/filesystem/WorkerGlobalScopeFileSystem.cpp: Renamed from Source/WebCore/Modules/filesystem/WorkerContextFileSystem.cpp.
(WebCore::WorkerGlobalScopeFileSystem::webkitRequestFileSystem):
(WebCore::WorkerGlobalScopeFileSystem::webkitRequestFileSystemSync):
(WebCore::WorkerGlobalScopeFileSystem::webkitResolveLocalFileSystemURL):
(WebCore::WorkerGlobalScopeFileSystem::webkitResolveLocalFileSystemSyncURL):
* Modules/filesystem/WorkerGlobalScopeFileSystem.h: Renamed from Source/WebCore/Modules/filesystem/WorkerContextFileSystem.h.
* Modules/filesystem/WorkerGlobalScopeFileSystem.idl: Renamed from Source/WebCore/Modules/filesystem/WorkerContextFileSystem.idl.
* Modules/indexeddb/IDBFactory.cpp:
* Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp: Renamed from Source/WebCore/Modules/indexeddb/WorkerContextIndexedDatabase.cpp.
(WebCore::WorkerGlobalScopeIndexedDatabase::WorkerGlobalScopeIndexedDatabase):
(WebCore::WorkerGlobalScopeIndexedDatabase::~WorkerGlobalScopeIndexedDatabase):
(WebCore::WorkerGlobalScopeIndexedDatabase::supplementName):
(WebCore::WorkerGlobalScopeIndexedDatabase::from):
(WebCore::WorkerGlobalScopeIndexedDatabase::indexedDB):
* Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.h: Renamed from Source/WebCore/Modules/indexeddb/WorkerContextIndexedDatabase.h.
* Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.idl: Renamed from Source/WebCore/Modules/indexeddb/WorkerContextIndexedDatabase.idl.
* Modules/notifications/Notification.cpp:
* Modules/notifications/NotificationCenter.cpp:
* Modules/notifications/WorkerGlobalScopeNotifications.cpp: Renamed from Source/WebCore/Modules/notifications/WorkerContextNotifications.cpp.
(WebCore::WorkerGlobalScopeNotifications::WorkerGlobalScopeNotifications):
(WebCore::WorkerGlobalScopeNotifications::~WorkerGlobalScopeNotifications):
(WebCore::WorkerGlobalScopeNotifications::supplementName):
(WebCore::WorkerGlobalScopeNotifications::from):
(WebCore::WorkerGlobalScopeNotifications::webkitNotifications):
* Modules/notifications/WorkerGlobalScopeNotifications.h: Renamed from Source/WebCore/Modules/notifications/WorkerContextNotifications.h.
* Modules/notifications/WorkerGlobalScopeNotifications.idl: Renamed from Source/WebCore/Modules/notifications/WorkerContextNotifications.idl.
* Modules/webdatabase/DatabaseContext.cpp:
(WebCore::DatabaseContext::allowDatabaseAccess):
(WebCore::DatabaseContext::databaseExceededQuota):
* Modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp: Renamed from Source/WebCore/Modules/webdatabase/WorkerContextWebDatabase.cpp.
(WebCore::WorkerGlobalScopeWebDatabase::openDatabase):
(WebCore::WorkerGlobalScopeWebDatabase::openDatabaseSync):
* Modules/webdatabase/WorkerGlobalScopeWebDatabase.h: Renamed from Source/WebCore/Modules/webdatabase/WorkerContextWebDatabase.h.
(WebCore::WorkerGlobalScopeWebDatabase::WorkerGlobalScopeWebDatabase):
(WebCore::WorkerGlobalScopeWebDatabase::~WorkerGlobalScopeWebDatabase):
* Modules/webdatabase/WorkerGlobalScopeWebDatabase.idl: Renamed from Source/WebCore/Modules/webdatabase/WorkerContextWebDatabase.idl.
* Modules/websockets/ThreadableWebSocketChannel.cpp:
(WebCore::ThreadableWebSocketChannel::create):
* Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
(WebCore::ThreadableWebSocketChannelClientWrapper::processPendingTasksCallback):
* Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
(WebCore::WorkerThreadableWebSocketChannel::WorkerThreadableWebSocketChannel):
(WebCore::workerGlobalScopeDidSend):
(WebCore::WorkerThreadableWebSocketChannel::Peer::send):
(WebCore::workerGlobalScopeDidGetBufferedAmount):
(WebCore::WorkerThreadableWebSocketChannel::Peer::bufferedAmount):
(WebCore::workerGlobalScopeDidConnect):
(WebCore::WorkerThreadableWebSocketChannel::Peer::didConnect):
(WebCore::workerGlobalScopeDidReceiveMessage):
(WebCore::WorkerThreadableWebSocketChannel::Peer::didReceiveMessage):
(WebCore::workerGlobalScopeDidReceiveBinaryData):
(WebCore::WorkerThreadableWebSocketChannel::Peer::didReceiveBinaryData):
(WebCore::workerGlobalScopeDidUpdateBufferedAmount):
(WebCore::WorkerThreadableWebSocketChannel::Peer::didUpdateBufferedAmount):
(WebCore::workerGlobalScopeDidStartClosingHandshake):
(WebCore::WorkerThreadableWebSocketChannel::Peer::didStartClosingHandshake):
(WebCore::workerGlobalScopeDidClose):
(WebCore::WorkerThreadableWebSocketChannel::Peer::didClose):
(WebCore::workerGlobalScopeDidReceiveMessageError):
(WebCore::WorkerThreadableWebSocketChannel::Peer::didReceiveMessageError):
(WebCore::WorkerThreadableWebSocketChannel::Bridge::Bridge):
(WebCore::WorkerThreadableWebSocketChannel::WorkerGlobalScopeDidInitializeTask::create):
(WebCore::WorkerThreadableWebSocketChannel::WorkerGlobalScopeDidInitializeTask::~WorkerGlobalScopeDidInitializeTask):
(WebCore::WorkerThreadableWebSocketChannel::WorkerGlobalScopeDidInitializeTask::WorkerGlobalScopeDidInitializeTask):
(WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadInitialize):
(WebCore::WorkerThreadableWebSocketChannel::Bridge::disconnect):
(WebCore::WorkerThreadableWebSocketChannel::Bridge::waitForMethodCompletion):
* Modules/websockets/WorkerThreadableWebSocketChannel.h:
(WebCore::WorkerThreadableWebSocketChannel::create):
(WebCore::WorkerThreadableWebSocketChannel::Bridge::create):
* Target.pri:
* UseJSC.cmake:
* WebCore.order:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* bindings/cpp/WebDOMEventTarget.cpp:
(toWebKit):
* bindings/cpp/WebDOMEventTarget.h:
* bindings/generic/ActiveDOMCallback.cpp:
* bindings/js/DOMRequestState.h:
(WebCore::DOMRequestState::DOMRequestState):
* bindings/js/JSBindingsAllInOne.cpp:
* bindings/js/JSDOMBinding.h:
* bindings/js/JSDOMGlobalObject.cpp:
(WebCore::JSDOMGlobalObject::scriptExecutionContext):
(WebCore::toJSDOMGlobalObject):
* bindings/js/JSDedicatedWorkerGlobalScopeCustom.cpp: Renamed from Source/WebCore/bindings/js/JSDedicatedWorkerContextCustom.cpp.
(WebCore::JSDedicatedWorkerGlobalScope::postMessage):
* bindings/js/JSEventListener.cpp:
(WebCore::JSEventListener::handleEvent):
* bindings/js/JSEventTargetCustom.cpp:
(WebCore::toJS):
* bindings/js/JSWorkerGlobalScopeBase.cpp: Renamed from Source/WebCore/bindings/js/JSWorkerContextBase.cpp.
(WebCore::JSWorkerGlobalScopeBase::JSWorkerGlobalScopeBase):
(WebCore::JSWorkerGlobalScopeBase::finishCreation):
(WebCore::JSWorkerGlobalScopeBase::destroy):
(WebCore::JSWorkerGlobalScopeBase::scriptExecutionContext):
(WebCore::toJS):
(WebCore::toJSDedicatedWorkerGlobalScope):
(WebCore::toJSSharedWorkerGlobalScope):
(WebCore::toJSWorkerGlobalScope):
* bindings/js/JSWorkerGlobalScopeBase.h: Renamed from Source/WebCore/bindings/js/JSWorkerContextBase.h.
(WebCore::JSWorkerGlobalScopeBase::impl):
(WebCore::JSWorkerGlobalScopeBase::createStructure):
* bindings/js/JSWorkerGlobalScopeCustom.cpp: Renamed from Source/WebCore/bindings/js/JSWorkerContextCustom.cpp.
(WebCore::JSWorkerGlobalScope::visitChildren):
(WebCore::JSWorkerGlobalScope::getOwnPropertySlotDelegate):
(WebCore::JSWorkerGlobalScope::getOwnPropertyDescriptorDelegate):
(WebCore::JSWorkerGlobalScope::importScripts):
(WebCore::JSWorkerGlobalScope::setTimeout):
(WebCore::JSWorkerGlobalScope::setInterval):
* bindings/js/ScheduledAction.cpp:
(WebCore::ScheduledAction::execute):
* bindings/js/ScheduledAction.h:
* bindings/js/ScriptProfiler.cpp:
(WebCore::ScriptProfiler::startForWorkerGlobalScope):
(WebCore::ScriptProfiler::stopForWorkerGlobalScope):
* bindings/js/ScriptProfiler.h:
* bindings/js/ScriptState.cpp:
(WebCore::scriptStateFromWorkerGlobalScope):
* bindings/js/ScriptState.h:
* bindings/js/WorkerScriptController.cpp:
(WebCore::WorkerScriptController::WorkerScriptController):
(WebCore::WorkerScriptController::~WorkerScriptController):
(WebCore::WorkerScriptController::initScript):
(WebCore::WorkerScriptController::evaluate):
(WebCore::WorkerScriptController::setException):
(WebCore::WorkerScriptController::forbidExecution):
(WebCore::WorkerScriptController::isExecutionForbidden):
(WebCore::WorkerScriptController::disableEval):
(WebCore::WorkerScriptController::attachDebugger):
(WebCore::WorkerScriptController::detachDebugger):
* bindings/js/WorkerScriptController.h:
(WebCore::WorkerScriptController::workerGlobalScopeWrapper):
(WebCore::WorkerScriptController::initScriptIfNeeded):
* bindings/js/WorkerScriptDebugServer.cpp:
(WebCore::WorkerScriptDebugServer::WorkerScriptDebugServer):
(WebCore::WorkerScriptDebugServer::addListener):
(WebCore::WorkerScriptDebugServer::recompileAllJSFunctions):
(WebCore::WorkerScriptDebugServer::removeListener):
(WebCore::WorkerScriptDebugServer::runEventLoopWhilePaused):
* bindings/js/WorkerScriptDebugServer.h:
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateHeader):
(GenerateImplementation):
* bindings/scripts/IDLAttributes.txt:
* bindings/scripts/preprocess-idls.pl:
* dom/ActiveDOMObject.cpp:
* dom/EventTarget.h:
* dom/EventTargetFactory.in:
* dom/MessagePort.cpp:
(WebCore::MessagePort::dispatchMessages):
* dom/ScriptExecutionContext.cpp:
(WebCore::ScriptExecutionContext::createdMessagePort):
(WebCore::ScriptExecutionContext::destroyedMessagePort):
(WebCore::ScriptExecutionContext::vm):
* dom/ScriptExecutionContext.h:
(WebCore::ScriptExecutionContext::isWorkerGlobalScope):
* inspector/InjectedScriptManager.cpp:
(WebCore::InjectedScriptManager::createForWorker):
(WebCore::InjectedScriptManager::canAccessInspectedWorkerGlobalScope):
* inspector/InjectedScriptManager.h:
* inspector/InspectorConsoleInstrumentation.h:
(WebCore::InspectorInstrumentation::addMessageToConsole):
* inspector/InspectorInstrumentation.cpp:
(WebCore::InspectorInstrumentation::didStartWorkerGlobalScopeImpl):
(WebCore::InspectorInstrumentation::willEvaluateWorkerScript):
(WebCore::InspectorInstrumentation::workerGlobalScopeTerminatedImpl):
(WebCore::InspectorInstrumentation::instrumentingAgentsForWorkerGlobalScope):
(WebCore::InspectorInstrumentation::instrumentingAgentsForNonDocumentContext):
* inspector/InspectorInstrumentation.h:
(WebCore::InspectorInstrumentation::didStartWorkerGlobalScope):
(WebCore::InspectorInstrumentation::workerGlobalScopeTerminated):
* inspector/InspectorProfilerAgent.cpp:
(WebCore::WorkerProfilerAgent::WorkerProfilerAgent):
(WebCore::WorkerProfilerAgent::startProfiling):
(WebCore::WorkerProfilerAgent::stopProfiling):
(WebCore::InspectorProfilerAgent::create):
* inspector/InspectorProfilerAgent.h:
* inspector/InspectorRuntimeAgent.h:
* inspector/InspectorWorkerAgent.cpp:
(WebCore::InspectorWorkerAgent::WorkerFrontendChannel::WorkerFrontendChannel):
(WebCore::InspectorWorkerAgent::WorkerFrontendChannel::~WorkerFrontendChannel):
(WebCore::InspectorWorkerAgent::WorkerFrontendChannel::proxy):
(WebCore::InspectorWorkerAgent::WorkerFrontendChannel::connectToWorkerGlobalScope):
(WebCore::InspectorWorkerAgent::WorkerFrontendChannel::disconnectFromWorkerGlobalScope):
(WebCore::InspectorWorkerAgent::connectToWorker):
(WebCore::InspectorWorkerAgent::disconnectFromWorker):
(WebCore::InspectorWorkerAgent::didStartWorkerGlobalScope):
(WebCore::InspectorWorkerAgent::workerGlobalScopeTerminated):
(WebCore::InspectorWorkerAgent::destroyWorkerFrontendChannels):
(WebCore::InspectorWorkerAgent::createWorkerFrontendChannel):
* inspector/InspectorWorkerAgent.h:
* inspector/InstrumentingAgents.cpp:
(WebCore::instrumentationForWorkerGlobalScope):
* inspector/InstrumentingAgents.h:
* inspector/WorkerDebuggerAgent.cpp:
(WebCore::WorkerDebuggerAgent::create):
(WebCore::WorkerDebuggerAgent::WorkerDebuggerAgent):
(WebCore::WorkerDebuggerAgent::~WorkerDebuggerAgent):
(WebCore::WorkerDebuggerAgent::interruptAndDispatchInspectorCommands):
(WebCore::WorkerDebuggerAgent::injectedScriptForEval):
* inspector/WorkerDebuggerAgent.h:
* inspector/WorkerInspectorController.cpp:
(WebCore::WorkerInspectorController::WorkerInspectorController):
(WebCore::WorkerInspectorController::connectFrontend):
* inspector/WorkerInspectorController.h:
* inspector/WorkerRuntimeAgent.cpp:
(WebCore::WorkerRuntimeAgent::WorkerRuntimeAgent):
(WebCore::WorkerRuntimeAgent::injectedScriptForEval):
(WebCore::WorkerRuntimeAgent::pauseWorkerGlobalScope):
* inspector/WorkerRuntimeAgent.h:
(WebCore::WorkerRuntimeAgent::create):
* loader/ThreadableLoader.cpp:
(WebCore::ThreadableLoader::create):
(WebCore::ThreadableLoader::loadResourceSynchronously):
* loader/WorkerThreadableLoader.cpp:
(WebCore::WorkerThreadableLoader::WorkerThreadableLoader):
(WebCore::WorkerThreadableLoader::loadResourceSynchronously):
(WebCore::workerGlobalScopeDidSendData):
(WebCore::WorkerThreadableLoader::MainThreadBridge::didSendData):
(WebCore::workerGlobalScopeDidReceiveResponse):
(WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveResponse):
(WebCore::workerGlobalScopeDidReceiveData):
(WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveData):
(WebCore::workerGlobalScopeDidFinishLoading):
(WebCore::WorkerThreadableLoader::MainThreadBridge::didFinishLoading):
(WebCore::workerGlobalScopeDidFail):
(WebCore::WorkerThreadableLoader::MainThreadBridge::didFail):
(WebCore::workerGlobalScopeDidFailAccessControlCheck):
(WebCore::WorkerThreadableLoader::MainThreadBridge::didFailAccessControlCheck):
(WebCore::workerGlobalScopeDidFailRedirectCheck):
(WebCore::WorkerThreadableLoader::MainThreadBridge::didFailRedirectCheck):
* loader/WorkerThreadableLoader.h:
(WebCore::WorkerThreadableLoader::create):
* loader/cache/MemoryCache.cpp:
(WebCore::MemoryCache::removeRequestFromCache):
* platform/blackberry/LocalFileSystemBlackBerry.cpp:
(WebCore::openFileSystem):
(WebCore::LocalFileSystem::deleteFileSystem):
* platform/blackberry/WorkerAsyncFileSystemBlackBerry.cpp:
(WebCore::WorkerAsyncFileSystemBlackBerry::WorkerAsyncFileSystemBlackBerry):
(WebCore::WorkerAsyncFileSystemBlackBerry::openFileSystem):
(WebCore::WorkerAsyncFileSystemBlackBerry::deleteFileSystem):
* platform/blackberry/WorkerAsyncFileSystemBlackBerry.h:
(WebCore::WorkerAsyncFileSystemBlackBerry::create):
* platform/blackberry/WorkerAsyncFileWriterBlackBerry.h:
* platform/blackberry/WorkerPlatformAsyncFileSystemCallbacks.cpp:
(WebCore::WorkerPlatformAsyncFileSystemCallbacks::postTaskToWorkerThread):
* platform/blackberry/WorkerPlatformAsyncFileSystemCallbacks.h:
* platform/blackberry/WorkerPlatformFileWriterClient.cpp:
(WebCore::WorkerPlatformFileWriterClient::postTaskToWorkerThreadIfNeeded):
* platform/blackberry/WorkerPlatformFileWriterClient.h:
* workers/DedicatedWorkerGlobalScope.cpp: Renamed from Source/WebCore/workers/DedicatedWorkerContext.cpp.
(WebCore::DedicatedWorkerGlobalScope::create):
(WebCore::DedicatedWorkerGlobalScope::DedicatedWorkerGlobalScope):
(WebCore::DedicatedWorkerGlobalScope::~DedicatedWorkerGlobalScope):
(WebCore::DedicatedWorkerGlobalScope::interfaceName):
(WebCore::DedicatedWorkerGlobalScope::postMessage):
(WebCore::DedicatedWorkerGlobalScope::importScripts):
(WebCore::DedicatedWorkerGlobalScope::thread):
* workers/DedicatedWorkerGlobalScope.h: Renamed from Source/WebCore/workers/DedicatedWorkerContext.h.
* workers/DedicatedWorkerGlobalScope.idl: Renamed from Source/WebCore/workers/DedicatedWorkerContext.idl.
* workers/DedicatedWorkerThread.cpp:
(WebCore::DedicatedWorkerThread::createWorkerGlobalScope):
(WebCore::DedicatedWorkerThread::runEventLoop):
* workers/DedicatedWorkerThread.h:
* workers/DefaultSharedWorkerRepository.cpp:
(WebCore::SharedWorkerProxy::postTaskForModeToWorkerGlobalScope):
(WebCore::SharedWorkerProxy::workerGlobalScopeClosed):
(WebCore::SharedWorkerProxy::workerGlobalScopeDestroyed):
(WebCore::SharedWorkerConnectTask::performTask):
(WebCore::SharedWorkerScriptLoader::notifyFinished):
(WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
* workers/SharedWorkerGlobalScope.cpp: Renamed from Source/WebCore/workers/SharedWorkerContext.cpp.
(WebCore::createConnectEvent):
(WebCore::SharedWorkerGlobalScope::create):
(WebCore::SharedWorkerGlobalScope::SharedWorkerGlobalScope):
(WebCore::SharedWorkerGlobalScope::~SharedWorkerGlobalScope):
(WebCore::SharedWorkerGlobalScope::interfaceName):
(WebCore::SharedWorkerGlobalScope::thread):
(WebCore::SharedWorkerGlobalScope::logExceptionToConsole):
* workers/SharedWorkerGlobalScope.h: Renamed from Source/WebCore/workers/SharedWorkerContext.h.
(WebCore::SharedWorkerGlobalScope::name):
* workers/SharedWorkerGlobalScope.idl: Renamed from Source/WebCore/workers/SharedWorkerContext.idl.
* workers/SharedWorkerThread.cpp:
(WebCore::SharedWorkerThread::createWorkerGlobalScope):
* workers/SharedWorkerThread.h:
* workers/Worker.cpp:
(WebCore::Worker::Worker):
(WebCore::Worker::postMessage):
(WebCore::Worker::terminate):
(WebCore::Worker::notifyFinished):
* workers/Worker.h:
* workers/WorkerGlobalScope.cpp: Renamed from Source/WebCore/workers/WorkerContext.cpp.
(WebCore::CloseWorkerGlobalScopeTask::create):
(WebCore::CloseWorkerGlobalScopeTask::performTask):
(WebCore::CloseWorkerGlobalScopeTask::isCleanupTask):
(WebCore::WorkerGlobalScope::WorkerGlobalScope):
(WebCore::WorkerGlobalScope::~WorkerGlobalScope):
(WebCore::WorkerGlobalScope::applyContentSecurityPolicyFromString):
(WebCore::WorkerGlobalScope::scriptExecutionContext):
(WebCore::WorkerGlobalScope::virtualURL):
(WebCore::WorkerGlobalScope::virtualCompleteURL):
(WebCore::WorkerGlobalScope::completeURL):
(WebCore::WorkerGlobalScope::userAgent):
(WebCore::WorkerGlobalScope::disableEval):
(WebCore::WorkerGlobalScope::location):
(WebCore::WorkerGlobalScope::close):
(WebCore::WorkerGlobalScope::navigator):
(WebCore::WorkerGlobalScope::hasPendingActivity):
(WebCore::WorkerGlobalScope::postTask):
(WebCore::WorkerGlobalScope::setTimeout):
(WebCore::WorkerGlobalScope::clearTimeout):
(WebCore::WorkerGlobalScope::clearInspector):
(WebCore::WorkerGlobalScope::setInterval):
(WebCore::WorkerGlobalScope::clearInterval):
(WebCore::WorkerGlobalScope::importScripts):
(WebCore::WorkerGlobalScope::errorEventTarget):
(WebCore::WorkerGlobalScope::logExceptionToConsole):
(WebCore::WorkerGlobalScope::addConsoleMessage):
(WebCore::WorkerGlobalScope::addMessage):
(WebCore::WorkerGlobalScope::addMessageToWorkerConsole):
(WebCore::WorkerGlobalScope::isContextThread):
(WebCore::WorkerGlobalScope::isJSExecutionForbidden):
(WebCore::WorkerGlobalScope::eventTargetData):
(WebCore::WorkerGlobalScope::ensureEventTargetData):
(WebCore::WorkerGlobalScope::Observer::Observer):
(WebCore::WorkerGlobalScope::Observer::~Observer):
(WebCore::WorkerGlobalScope::Observer::stopObserving):
(WebCore::WorkerGlobalScope::registerObserver):
(WebCore::WorkerGlobalScope::unregisterObserver):
(WebCore::WorkerGlobalScope::notifyObserversOfStop):
(WebCore::WorkerGlobalScope::eventQueue):
* workers/WorkerGlobalScope.h: Renamed from Source/WebCore/workers/WorkerContext.h.
(WebCore::WorkerGlobalScope::isSharedWorkerGlobalScope):
(WebCore::WorkerGlobalScope::isDedicatedWorkerGlobalScope):
(WebCore::WorkerGlobalScope::url):
(WebCore::WorkerGlobalScope::groupSettings):
(WebCore::WorkerGlobalScope::script):
(WebCore::WorkerGlobalScope::clearScript):
(WebCore::WorkerGlobalScope::thread):
(WebCore::WorkerGlobalScope::self):
(WebCore::WorkerGlobalScope::workerInspectorController):
(WebCore::WorkerGlobalScope::optionalNavigator):
(WebCore::WorkerGlobalScope::optionalLocation):
(WebCore::WorkerGlobalScope::isClosing):
* workers/WorkerGlobalScope.idl: Renamed from Source/WebCore/workers/WorkerContext.idl.
* workers/WorkerGlobalScopeProxy.h: Renamed from Source/WebCore/workers/WorkerContextProxy.h.
(WebCore::WorkerGlobalScopeProxy::~WorkerGlobalScopeProxy):
(WebCore::WorkerGlobalScopeProxy::PageInspector::~PageInspector):
(WebCore::WorkerGlobalScopeProxy::connectToInspector):
(WebCore::WorkerGlobalScopeProxy::disconnectFromInspector):
(WebCore::WorkerGlobalScopeProxy::sendMessageToInspector):
* workers/WorkerLoaderProxy.h:
* workers/WorkerMessagingProxy.cpp:
(WebCore::MessageWorkerGlobalScopeTask::create):
(WebCore::MessageWorkerGlobalScopeTask::MessageWorkerGlobalScopeTask):
(WebCore::MessageWorkerGlobalScopeTask::performTask):
(WebCore::WorkerGlobalScopeDestroyedTask::create):
(WebCore::WorkerGlobalScopeDestroyedTask::WorkerGlobalScopeDestroyedTask):
(WebCore::WorkerGlobalScopeDestroyedTask::performTask):
(WebCore::WorkerTerminateTask::performTask):
(WebCore::PostMessageToPageInspectorTask::performTask):
(WebCore::WorkerGlobalScopeProxy::create):
(WebCore::WorkerMessagingProxy::WorkerMessagingProxy):
(WebCore::WorkerMessagingProxy::~WorkerMessagingProxy):
(WebCore::WorkerMessagingProxy::startWorkerGlobalScope):
(WebCore::WorkerMessagingProxy::postMessageToWorkerGlobalScope):
(WebCore::WorkerMessagingProxy::postTaskForModeToWorkerGlobalScope):
(WebCore::WorkerMessagingProxy::workerObjectDestroyedInternal):
(WebCore::connectToWorkerGlobalScopeInspectorTask):
(WebCore::WorkerMessagingProxy::connectToInspector):
(WebCore::disconnectFromWorkerGlobalScopeInspectorTask):
(WebCore::WorkerMessagingProxy::disconnectFromInspector):
(WebCore::dispatchOnInspectorBackendTask):
(WebCore::WorkerMessagingProxy::workerGlobalScopeDestroyed):
(WebCore::WorkerMessagingProxy::workerGlobalScopeClosed):
(WebCore::WorkerMessagingProxy::workerGlobalScopeDestroyedInternal):
(WebCore::WorkerMessagingProxy::terminateWorkerGlobalScope):
* workers/WorkerMessagingProxy.h:
* workers/WorkerObjectProxy.h:
* workers/WorkerReportingProxy.h:
* workers/WorkerRunLoop.cpp:
(WebCore::WorkerRunLoop::run):
(WebCore::WorkerRunLoop::runInMode):
(WebCore::WorkerRunLoop::runCleanupTasks):
(WebCore::WorkerRunLoop::Task::performTask):
* workers/WorkerRunLoop.h:
* workers/WorkerScriptLoader.cpp:
(WebCore::WorkerScriptLoader::loadSynchronously):
* workers/WorkerThread.cpp:
(WebCore::WorkerThread::workerThread):
(WebCore::WorkerThread::runEventLoop):
(WebCore::WorkerThreadShutdownFinishTask::performTask):
(WebCore::WorkerThreadShutdownStartTask::performTask):
(WebCore::WorkerThread::stop):
* workers/WorkerThread.h:
(WebCore::WorkerThread::workerGlobalScope):
* xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::usesDashboardBackwardCompatibilityMode):
(WebCore::XMLHttpRequest::responseXML):

Source/WebKit/qt:

Update calls to ScriptExecutionContext::isWorkerContext() as it was
renamed to ScriptExecutionContext::isWorkerGlobalScope().

* WebCoreSupport/NotificationPresenterClientQt.cpp:
(WebCore::NotificationPresenterClientQt::show):
(WebCore::NotificationPresenterClientQt::toPage):
(WebCore::NotificationPresenterClientQt::toFrame):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152080 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e52a8ab4
......@@ -177,7 +177,7 @@ set(WebCore_IDL_FILES
Modules/filesystem/HTMLInputElementFileSystem.idl
Modules/filesystem/Metadata.idl
Modules/filesystem/MetadataCallback.idl
Modules/filesystem/WorkerContextFileSystem.idl
Modules/filesystem/WorkerGlobalScopeFileSystem.idl
Modules/gamepad/Gamepad.idl
Modules/gamepad/GamepadList.idl
......@@ -204,7 +204,7 @@ set(WebCore_IDL_FILES
Modules/indexeddb/IDBRequest.idl
Modules/indexeddb/IDBTransaction.idl
Modules/indexeddb/IDBVersionChangeEvent.idl
Modules/indexeddb/WorkerContextIndexedDatabase.idl
Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.idl
Modules/mediasource/MediaSource.idl
Modules/mediasource/SourceBuffer.idl
......@@ -242,7 +242,7 @@ set(WebCore_IDL_FILES
Modules/notifications/Notification.idl
Modules/notifications/NotificationCenter.idl
Modules/notifications/NotificationPermissionCallback.idl
Modules/notifications/WorkerContextNotifications.idl
Modules/notifications/WorkerGlobalScopeNotifications.idl
Modules/proximity/DeviceProximityEvent.idl
......@@ -589,11 +589,11 @@ set(WebCore_IDL_FILES
storage/StorageEvent.idl
workers/AbstractWorker.idl
workers/DedicatedWorkerContext.idl
workers/DedicatedWorkerGlobalScope.idl
workers/SharedWorker.idl
workers/SharedWorkerContext.idl
workers/SharedWorkerGlobalScope.idl
workers/Worker.idl
workers/WorkerContext.idl
workers/WorkerGlobalScope.idl
workers/WorkerLocation.idl
xml/DOMParser.idl
......@@ -794,7 +794,7 @@ set(WebCore_SOURCES
Modules/filesystem/FileWriterSync.cpp
Modules/filesystem/HTMLInputElementFileSystem.cpp
Modules/filesystem/LocalFileSystem.cpp
Modules/filesystem/WorkerContextFileSystem.cpp
Modules/filesystem/WorkerGlobalScopeFileSystem.cpp
Modules/gamepad/Gamepad.cpp
Modules/gamepad/GamepadList.cpp
......@@ -834,7 +834,7 @@ set(WebCore_SOURCES
Modules/indexeddb/IDBTransactionCoordinator.cpp
Modules/indexeddb/IDBVersionChangeEvent.cpp
Modules/indexeddb/PageGroupIndexedDatabase.cpp
Modules/indexeddb/WorkerContextIndexedDatabase.cpp
Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp
Modules/mediasource/MediaSource.cpp
Modules/mediasource/MediaSourceRegistry.cpp
......@@ -876,7 +876,7 @@ set(WebCore_SOURCES
Modules/notifications/NotificationCenter.cpp
Modules/notifications/NotificationController.cpp
Modules/notifications/Notification.cpp
Modules/notifications/WorkerContextNotifications.cpp
Modules/notifications/WorkerGlobalScopeNotifications.cpp
Modules/proximity/DeviceProximityController.cpp
Modules/proximity/DeviceProximityEvent.cpp
......@@ -2498,15 +2498,15 @@ set(WebCore_SOURCES
svg/properties/SVGPathSegListPropertyTearOff.cpp
workers/AbstractWorker.cpp
workers/DedicatedWorkerContext.cpp
workers/DedicatedWorkerGlobalScope.cpp
workers/DedicatedWorkerThread.cpp
workers/DefaultSharedWorkerRepository.cpp
workers/SharedWorker.cpp
workers/SharedWorkerContext.cpp
workers/SharedWorkerGlobalScope.cpp
workers/SharedWorkerRepository.cpp
workers/SharedWorkerThread.cpp
workers/Worker.cpp
workers/WorkerContext.cpp
workers/WorkerGlobalScope.cpp
workers/WorkerEventQueue.cpp
workers/WorkerLocation.cpp
workers/WorkerMessagingProxy.cpp
......@@ -2594,11 +2594,11 @@ set(WebCore_LIBRARIES
if (ENABLE_SQL_DATABASE AND ENABLE_WORKERS)
list(APPEND WebCore_SOURCES
Modules/webdatabase/WorkerContextWebDatabase.cpp
Modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp
)
list(APPEND WebCore_IDL_FILES
Modules/webdatabase/WorkerContextWebDatabase.idl
Modules/webdatabase/WorkerGlobalScopeWebDatabase.idl
)
endif ()
......@@ -2961,7 +2961,7 @@ set(SCRIPTS_BINDINGS
set(IDL_FILES_TMP ${DERIVED_SOURCES_WEBCORE_DIR}/idl_files.tmp)
set(SUPPLEMENTAL_DEPENDENCY_FILE ${DERIVED_SOURCES_WEBCORE_DIR}/supplemental_dependency.tmp)
set(WINDOW_CONSTRUCTORS_FILE ${DERIVED_SOURCES_WEBCORE_DIR}/DOMWindowConstructors.idl)
set(WORKERCONTEXT_CONSTRUCTORS_FILE ${DERIVED_SOURCES_WEBCORE_DIR}/WorkerContextConstructors.idl)
set(WORKERGLOBALSCOPE_CONSTRUCTORS_FILE ${DERIVED_SOURCES_WEBCORE_DIR}/WorkerGlobalScopeConstructors.idl)
set(IDL_ATTRIBUTES_FILE ${WEBCORE_DIR}/bindings/scripts/IDLAttributes.txt)
include(${WEBCORE_DIR}/UseJSC.cmake)
......
This diff is collapsed.
......@@ -103,7 +103,7 @@
#include "JSDataTransferItem.cpp"
#include "JSDataTransferItemList.cpp"
#include "JSDataView.cpp"
#include "JSDedicatedWorkerContext.cpp"
#include "JSDedicatedWorkerGlobalScope.cpp"
#include "JSDeviceOrientationEvent.cpp"
#include "JSDirectoryEntry.cpp"
#include "JSDirectoryEntrySync.cpp"
......@@ -318,7 +318,7 @@
#include "JSScriptProfileNode.cpp"
#include "JSShadowRoot.cpp"
#include "JSSharedWorker.cpp"
#include "JSSharedWorkerContext.cpp"
#include "JSSharedWorkerGlobalScope.cpp"
#if ENABLE(MEDIA_SOURCE)
#include "JSSourceBuffer.cpp"
#include "JSSourceBufferList.cpp"
......@@ -538,7 +538,7 @@
#include "JSWebSocket.cpp"
#include "JSWheelEvent.cpp"
#include "JSWorker.cpp"
#include "JSWorkerContext.cpp"
#include "JSWorkerGlobalScope.cpp"
#include "JSWorkerLocation.cpp"
#include "JSWorkerNavigator.cpp"
#include "JSXMLHttpRequest.cpp"
......
......@@ -91,7 +91,7 @@ BINDING_IDLS = \
$(WebCore)/Modules/filesystem/FileWriterSync.idl \
$(WebCore)/Modules/filesystem/Metadata.idl \
$(WebCore)/Modules/filesystem/MetadataCallback.idl \
$(WebCore)/Modules/filesystem/WorkerContextFileSystem.idl \
$(WebCore)/Modules/filesystem/WorkerGlobalScopeFileSystem.idl \
$(WebCore)/Modules/geolocation/Coordinates.idl \
$(WebCore)/Modules/geolocation/Geolocation.idl \
$(WebCore)/Modules/geolocation/Geoposition.idl \
......@@ -110,7 +110,7 @@ BINDING_IDLS = \
$(WebCore)/Modules/indexeddb/IDBRequest.idl \
$(WebCore)/Modules/indexeddb/IDBTransaction.idl \
$(WebCore)/Modules/indexeddb/IDBVersionChangeEvent.idl \
$(WebCore)/Modules/indexeddb/WorkerContextIndexedDatabase.idl \
$(WebCore)/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.idl \
$(WebCore)/Modules/indieui/UIRequestEvent.idl \
$(WebCore)/Modules/mediasource/MediaSource.idl \
$(WebCore)/Modules/mediasource/SourceBuffer.idl \
......@@ -119,7 +119,7 @@ BINDING_IDLS = \
$(WebCore)/Modules/notifications/Notification.idl \
$(WebCore)/Modules/notifications/NotificationCenter.idl \
$(WebCore)/Modules/notifications/NotificationPermissionCallback.idl \
$(WebCore)/Modules/notifications/WorkerContextNotifications.idl \
$(WebCore)/Modules/notifications/WorkerGlobalScopeNotifications.idl \
$(WebCore)/Modules/quota/DOMWindowQuota.idl \
$(WebCore)/Modules/quota/NavigatorStorageQuota.idl \
$(WebCore)/Modules/quota/StorageInfo.idl \
......@@ -174,7 +174,7 @@ BINDING_IDLS = \
$(WebCore)/Modules/webdatabase/SQLTransactionErrorCallback.idl \
$(WebCore)/Modules/webdatabase/SQLTransactionSync.idl \
$(WebCore)/Modules/webdatabase/SQLTransactionSyncCallback.idl \
$(WebCore)/Modules/webdatabase/WorkerContextWebDatabase.idl \
$(WebCore)/Modules/webdatabase/WorkerGlobalScopeWebDatabase.idl \
$(WebCore)/Modules/websockets/CloseEvent.idl \
$(WebCore)/Modules/websockets/WebSocket.idl \
$(WebCore)/css/CSSCharsetRule.idl \
......@@ -631,11 +631,11 @@ BINDING_IDLS = \
$(WebCore)/testing/MemoryInfo.idl \
$(WebCore)/testing/TypeConversions.idl \
$(WebCore)/workers/AbstractWorker.idl \
$(WebCore)/workers/DedicatedWorkerContext.idl \
$(WebCore)/workers/DedicatedWorkerGlobalScope.idl \
$(WebCore)/workers/SharedWorker.idl \
$(WebCore)/workers/SharedWorkerContext.idl \
$(WebCore)/workers/SharedWorkerGlobalScope.idl \
$(WebCore)/workers/Worker.idl \
$(WebCore)/workers/WorkerContext.idl \
$(WebCore)/workers/WorkerGlobalScope.idl \
$(WebCore)/workers/WorkerLocation.idl \
$(WebCore)/xml/DOMParser.idl \
$(WebCore)/xml/XMLHttpRequest.idl \
......@@ -663,7 +663,7 @@ WEB_DOM_HEADERS :=
all : \
$(SUPPLEMENTAL_DEPENDENCY_FILE) \
$(WINDOW_CONSTRUCTORS_FILE) \
$(WORKERCONTEXT_CONSTRUCTORS_FILE) \
$(WORKERGLOBALSCOPE_CONSTRUCTORS_FILE) \
$(JS_DOM_HEADERS) \
$(WEB_DOM_HEADERS) \
\
......@@ -1009,7 +1009,7 @@ JS_BINDINGS_SCRIPTS = $(GENERATE_SCRIPTS) bindings/scripts/CodeGeneratorJS.pm
SUPPLEMENTAL_DEPENDENCY_FILE = ./SupplementalDependencies.txt
SUPPLEMENTAL_MAKEFILE_DEPS = ./SupplementalDependencies.dep
WINDOW_CONSTRUCTORS_FILE = ./DOMWindowConstructors.idl
WORKERCONTEXT_CONSTRUCTORS_FILE = ./WorkerContextConstructors.idl
WORKERGLOBALSCOPE_CONSTRUCTORS_FILE = ./WorkerGlobalScopeConstructors.idl
IDL_FILES_TMP = ./idl_files.tmp
ADDITIONAL_IDLS = $(WebCore)/inspector/JavaScriptCallFrame.idl
IDL_ATTRIBUTES_FILE = $(WebCore)/bindings/scripts/IDLAttributes.txt
......@@ -1021,10 +1021,10 @@ space +=
$(SUPPLEMENTAL_MAKEFILE_DEPS) : $(PREPROCESS_IDLS_SCRIPTS) $(BINDING_IDLS) $(ADDITIONAL_IDLS) $(PLATFORM_FEATURE_DEFINES)
printf "$(subst $(space),,$(patsubst %,%\n,$(BINDING_IDLS) $(ADDITIONAL_IDLS)))" > $(IDL_FILES_TMP)
$(call preprocess_idls_script, $(PREPROCESS_IDLS_SCRIPTS)) --defines "$(FEATURE_DEFINES) $(ADDITIONAL_IDL_DEFINES) LANGUAGE_JAVASCRIPT" --idlFilesList $(IDL_FILES_TMP) --supplementalDependencyFile $(SUPPLEMENTAL_DEPENDENCY_FILE) --windowConstructorsFile $(WINDOW_CONSTRUCTORS_FILE) --workerContextConstructorsFile $(WORKERCONTEXT_CONSTRUCTORS_FILE) --supplementalMakefileDeps $@
$(call preprocess_idls_script, $(PREPROCESS_IDLS_SCRIPTS)) --defines "$(FEATURE_DEFINES) $(ADDITIONAL_IDL_DEFINES) LANGUAGE_JAVASCRIPT" --idlFilesList $(IDL_FILES_TMP) --supplementalDependencyFile $(SUPPLEMENTAL_DEPENDENCY_FILE) --windowConstructorsFile $(WINDOW_CONSTRUCTORS_FILE) --workerGlobalScopeConstructorsFile $(WORKERGLOBALSCOPE_CONSTRUCTORS_FILE) --supplementalMakefileDeps $@
rm -f $(IDL_FILES_TMP)
JS%.h : %.idl $(JS_BINDINGS_SCRIPTS) $(IDL_ATTRIBUTES_FILE) $(WINDOW_CONSTRUCTORS_FILE) $(WORKERCONTEXT_CONSTRUCTORS_FILE) $(PLATFORM_FEATURE_DEFINES)
JS%.h : %.idl $(JS_BINDINGS_SCRIPTS) $(IDL_ATTRIBUTES_FILE) $(WINDOW_CONSTRUCTORS_FILE) $(WORKERGLOBALSCOPE_CONSTRUCTORS_FILE) $(PLATFORM_FEATURE_DEFINES)
$(call generator_script, $(JS_BINDINGS_SCRIPTS)) $(IDL_COMMON_ARGS) --defines "$(FEATURE_DEFINES) $(ADDITIONAL_IDL_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --idlAttributesFile $(IDL_ATTRIBUTES_FILE) --supplementalDependencyFile $(SUPPLEMENTAL_DEPENDENCY_FILE) $<
-include $(SUPPLEMENTAL_MAKEFILE_DEPS)
......
......@@ -112,7 +112,7 @@ IDL_BINDINGS += \
$$PWD/Modules/filesystem/FileWriterCallback.idl \
$$PWD/Modules/filesystem/Metadata.idl \
$$PWD/Modules/filesystem/MetadataCallback.idl \
$$PWD/Modules/filesystem/WorkerContextFileSystem.idl \
$$PWD/Modules/filesystem/WorkerGlobalScopeFileSystem.idl \
$$PWD/Modules/geolocation/Coordinates.idl \
$$PWD/Modules/geolocation/Geolocation.idl \
$$PWD/Modules/geolocation/Geoposition.idl \
......@@ -130,12 +130,12 @@ IDL_BINDINGS += \
$$PWD/Modules/indexeddb/IDBObjectStore.idl \
$$PWD/Modules/indexeddb/IDBRequest.idl \
$$PWD/Modules/indexeddb/IDBTransaction.idl \
$$PWD/Modules/indexeddb/WorkerContextIndexedDatabase.idl \
$$PWD/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.idl \
$$PWD/Modules/notifications/DOMWindowNotifications.idl \
$$PWD/Modules/notifications/Notification.idl \
$$PWD/Modules/notifications/NotificationCenter.idl \
$$PWD/Modules/notifications/NotificationPermissionCallback.idl \
$$PWD/Modules/notifications/WorkerContextNotifications.idl \
$$PWD/Modules/notifications/WorkerGlobalScopeNotifications.idl \
$$PWD/Modules/quota/DOMWindowQuota.idl \
$$PWD/Modules/quota/NavigatorStorageQuota.idl \
$$PWD/Modules/quota/StorageInfo.idl \
......@@ -185,7 +185,7 @@ IDL_BINDINGS += \
$$PWD/Modules/webdatabase/SQLTransactionErrorCallback.idl \
$$PWD/Modules/webdatabase/SQLTransactionSync.idl \
$$PWD/Modules/webdatabase/SQLTransactionSyncCallback.idl \
$$PWD/Modules/webdatabase/WorkerContextWebDatabase.idl \
$$PWD/Modules/webdatabase/WorkerGlobalScopeWebDatabase.idl \
$$PWD/Modules/websockets/CloseEvent.idl \
$$PWD/Modules/websockets/WebSocket.idl \
$$PWD/css/Counter.idl \
......@@ -476,11 +476,11 @@ IDL_BINDINGS += \
$$PWD/testing/MemoryInfo.idl \
$$PWD/testing/TypeConversions.idl \
$$PWD/workers/AbstractWorker.idl \
$$PWD/workers/DedicatedWorkerContext.idl \
$$PWD/workers/DedicatedWorkerGlobalScope.idl \
$$PWD/workers/SharedWorker.idl \
$$PWD/workers/SharedWorkerContext.idl \
$$PWD/workers/SharedWorkerGlobalScope.idl \
$$PWD/workers/Worker.idl \
$$PWD/workers/WorkerContext.idl \
$$PWD/workers/WorkerGlobalScope.idl \
$$PWD/workers/WorkerLocation.idl \
$$PWD/xml/DOMParser.idl \
$$PWD/xml/XMLHttpRequest.idl \
......@@ -734,7 +734,7 @@ IDL_BINDINGS += generated/$$INTERNAL_SETTINGS_GENERATED_IDL
# GENERATOR 0: Resolve [Supplemental] dependency in IDLs
SUPPLEMENTAL_DEPENDENCY_FILE = supplemental_dependency.tmp
WINDOW_CONSTRUCTORS_FILE = DOMWindowConstructors.idl
WORKERCONTEXT_CONSTRUCTORS_FILE = WorkerContextConstructors.idl
WORKERGLOBALSCOPE_CONSTRUCTORS_FILE = WorkerGlobalScopeConstructors.idl
IDL_FILES_TMP = ${QMAKE_FUNC_FILE_OUT_PATH}/idl_files.tmp
PREPROCESS_IDLS_SCRIPT = $$PWD/bindings/scripts/preprocess-idls.pl
IDL_ATTRIBUTES_FILE = $$PWD/bindings/scripts/IDLAttributes.txt
......@@ -754,8 +754,8 @@ preprocessIdls.commands += perl -I$$PWD/bindings/scripts $$preprocessIdls.script
--idlFilesList $$IDL_FILES_TMP \
--supplementalDependencyFile ${QMAKE_FUNC_FILE_OUT_PATH}/$$SUPPLEMENTAL_DEPENDENCY_FILE \
--windowConstructorsFile ${QMAKE_FUNC_FILE_OUT_PATH}/$$WINDOW_CONSTRUCTORS_FILE \
--workerContextConstructorsFile ${QMAKE_FUNC_FILE_OUT_PATH}/$$WORKERCONTEXT_CONSTRUCTORS_FILE
preprocessIdls.output = $$SUPPLEMENTAL_DEPENDENCY_FILE $$WINDOW_CONSTRUCTORS_FILE $$WORKERCONTEXT_CONSTRUCTORS_FILE
--workerGlobalScopeConstructorsFile ${QMAKE_FUNC_FILE_OUT_PATH}/$$WORKERGLOBALSCOPE_CONSTRUCTORS_FILE
preprocessIdls.output = $$SUPPLEMENTAL_DEPENDENCY_FILE $$WINDOW_CONSTRUCTORS_FILE $$WORKERGLOBALSCOPE_CONSTRUCTORS_FILE
preprocessIdls.add_output_to_sources = false
preprocessIdls.depends = $$IDL_BINDINGS
GENERATORS += preprocessIdls
......
......@@ -404,7 +404,7 @@ vpath %.idl $(IDL_PATH)
supplemental_dependency_file = $(top_builddir)/DerivedSources/WebCore/idl_supplemental_dependencies
window_constructors_file = $(top_builddir)/DerivedSources/WebCore/DOMWindowConstructors.idl
workercontext_constructors_file = $(top_builddir)/DerivedSources/WebCore/WorkerContextConstructors.idl
workerglobalscope_constructors_file = $(top_builddir)/DerivedSources/WebCore/WorkerGlobalScopeConstructors.idl
idl_files_list = $(top_builddir)/DerivedSources/WebCore/idl_files_list
idl_attributes_file = $(WebCore)/bindings/scripts/IDLAttributes.txt
......@@ -413,9 +413,9 @@ $(supplemental_dependency_file): $(SCRIPTS_FOR_PREPROCESS_IDLS) $(dom_binding_id
$(AM_V_GEN)
$(AM_V_at)echo -n > $(idl_files_list)
$(AM_V_at)($(foreach idl, $(dom_binding_idls), echo $(idl) &&) echo -n) >> $(idl_files_list)
$(AM_V_at)$(PERL) -I$(WebCore)/bindings/scripts $(WebCore)/bindings/scripts/preprocess-idls.pl --defines "LANGUAGE_JAVASCRIPT=1 $(feature_defines)" --idlFilesList $(idl_files_list) --windowConstructorsFile $(window_constructors_file) --workerContextConstructorsFile $(workercontext_constructors_file) --supplementalDependencyFile $@
$(AM_V_at)$(PERL) -I$(WebCore)/bindings/scripts $(WebCore)/bindings/scripts/preprocess-idls.pl --defines "LANGUAGE_JAVASCRIPT=1 $(feature_defines)" --idlFilesList $(idl_files_list) --windowConstructorsFile $(window_constructors_file) --workerGlobalScopeConstructorsFile $(workerglobalscope_constructors_file) --supplementalDependencyFile $@
.PHONY: $(window_constructors_file) $(workercontext_constructors_file)
.PHONY: $(window_constructors_file) $(workerglobalscope_constructors_file)
# This does not appear to work correctly with gnumake unless
# it includes an empty command list (the semicolon).
......@@ -435,7 +435,7 @@ DerivedSources/WebCore/JSInternalSettingsGenerated.h: DerivedSources/WebCore/Int
# IDL generation takes a long time. The pipe represents an order-only dependency,
# which means that GNUmake will only try to build the dependencies first, but
# not rebuild all the targets if the dependencies change.
$(webkitgtk_sources) $(webkit2_sources) $(webkit2_plugin_process_sources) $(webcore_sources) $(webcoregtk_sources) $(platform_sources) $(platformgtk_sources) : | $(supplemental_dependency_file) $(window_constructors_file) $(workercontext_constructors_file) $(webcore_built_sources) $(platform_built_sources)
$(webkitgtk_sources) $(webkit2_sources) $(webkit2_plugin_process_sources) $(webcore_sources) $(webcoregtk_sources) $(platform_sources) $(platformgtk_sources) : | $(supplemental_dependency_file) $(window_constructors_file) $(workerglobalscope_constructors_file) $(webcore_built_sources) $(platform_built_sources)
noinst_LTLIBRARIES += \
libWebCorePlatform.la \
......
......@@ -158,8 +158,8 @@ webcore_built_sources += \
DerivedSources/WebCore/JSDataTransferItemList.h \
DerivedSources/WebCore/JSDataView.cpp \
DerivedSources/WebCore/JSDataView.h \
DerivedSources/WebCore/JSDedicatedWorkerContext.cpp \
DerivedSources/WebCore/JSDedicatedWorkerContext.h \
DerivedSources/WebCore/JSDedicatedWorkerGlobalScope.cpp \
DerivedSources/WebCore/JSDedicatedWorkerGlobalScope.h \
DerivedSources/WebCore/JSDelayNode.cpp \
DerivedSources/WebCore/JSDelayNode.h \
DerivedSources/WebCore/JSDeviceMotionEvent.cpp \
......@@ -676,8 +676,8 @@ webcore_built_sources += \
DerivedSources/WebCore/JSSecurityPolicyViolationEvent.h \
DerivedSources/WebCore/JSShadowRoot.cpp \
DerivedSources/WebCore/JSShadowRoot.h \
DerivedSources/WebCore/JSSharedWorkerContext.cpp \
DerivedSources/WebCore/JSSharedWorkerContext.h \
DerivedSources/WebCore/JSSharedWorkerGlobalScope.cpp \
DerivedSources/WebCore/JSSharedWorkerGlobalScope.h \
DerivedSources/WebCore/JSSharedWorker.cpp \
DerivedSources/WebCore/JSSharedWorker.h \
DerivedSources/WebCore/JSSourceBuffer.cpp \
......@@ -854,8 +854,8 @@ webcore_built_sources += \
DerivedSources/WebCore/JSWebSocket.h \
DerivedSources/WebCore/JSWheelEvent.cpp \
DerivedSources/WebCore/JSWheelEvent.h \
DerivedSources/WebCore/JSWorkerContext.cpp \
DerivedSources/WebCore/JSWorkerContext.h \
DerivedSources/WebCore/JSWorkerGlobalScope.cpp \
DerivedSources/WebCore/JSWorkerGlobalScope.h \
DerivedSources/WebCore/JSWorker.cpp \
DerivedSources/WebCore/JSWorker.h \
DerivedSources/WebCore/JSWorkerLocation.cpp \
......@@ -1239,7 +1239,7 @@ dom_binding_idls += \
$(WebCore)/Modules/filesystem/FileWriterSync.idl \
$(WebCore)/Modules/filesystem/Metadata.idl \
$(WebCore)/Modules/filesystem/MetadataCallback.idl \
$(WebCore)/Modules/filesystem/WorkerContextFileSystem.idl \
$(WebCore)/Modules/filesystem/WorkerGlobalScopeFileSystem.idl \
$(WebCore)/Modules/gamepad/Gamepad.idl \
$(WebCore)/Modules/gamepad/GamepadList.idl \
$(WebCore)/Modules/gamepad/NavigatorGamepad.idl \
......@@ -1263,7 +1263,7 @@ dom_binding_idls += \
$(WebCore)/Modules/indexeddb/IDBRequest.idl \
$(WebCore)/Modules/indexeddb/IDBTransaction.idl \
$(WebCore)/Modules/indexeddb/IDBVersionChangeEvent.idl \
$(WebCore)/Modules/indexeddb/WorkerContextIndexedDatabase.idl \
$(WebCore)/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.idl \
$(WebCore)/Modules/mediasource/MediaSource.idl \
$(WebCore)/Modules/mediasource/SourceBuffer.idl \
$(WebCore)/Modules/mediasource/SourceBufferList.idl \
......@@ -1294,7 +1294,7 @@ dom_binding_idls += \
$(WebCore)/Modules/notifications/Notification.idl \
$(WebCore)/Modules/notifications/NotificationCenter.idl \
$(WebCore)/Modules/notifications/NotificationPermissionCallback.idl \
$(WebCore)/Modules/notifications/WorkerContextNotifications.idl \
$(WebCore)/Modules/notifications/WorkerGlobalScopeNotifications.idl \
$(WebCore)/Modules/proximity/DeviceProximityEvent.idl \
$(WebCore)/Modules/quota/DOMWindowQuota.idl \
$(WebCore)/Modules/quota/NavigatorStorageQuota.idl \
......@@ -1345,7 +1345,7 @@ dom_binding_idls += \
$(WebCore)/Modules/webdatabase/SQLTransactionErrorCallback.idl \
$(WebCore)/Modules/webdatabase/SQLTransactionSync.idl \
$(WebCore)/Modules/webdatabase/SQLTransactionSyncCallback.idl \
$(WebCore)/Modules/webdatabase/WorkerContextWebDatabase.idl \
$(WebCore)/Modules/webdatabase/WorkerGlobalScopeWebDatabase.idl \
$(WebCore)/Modules/websockets/CloseEvent.idl \
$(WebCore)/Modules/websockets/WebSocket.idl \
$(WebCore)/css/CSSCharsetRule.idl \
......@@ -1795,11 +1795,11 @@ dom_binding_idls += \
$(WebCore)/testing/MemoryInfo.idl \
$(WebCore)/testing/TypeConversions.idl \
$(WebCore)/workers/AbstractWorker.idl \
$(WebCore)/workers/DedicatedWorkerContext.idl \
$(WebCore)/workers/DedicatedWorkerGlobalScope.idl \
$(WebCore)/workers/SharedWorker.idl \
$(WebCore)/workers/SharedWorkerContext.idl \
$(WebCore)/workers/SharedWorkerGlobalScope.idl \
$(WebCore)/workers/Worker.idl \
$(WebCore)/workers/WorkerContext.idl \
$(WebCore)/workers/WorkerGlobalScope.idl \
$(WebCore)/workers/WorkerLocation.idl \
$(WebCore)/xml/DOMParser.idl \
$(WebCore)/xml/XMLHttpRequest.idl \
......@@ -1879,8 +1879,8 @@ webcore_modules_sources += \
Source/WebCore/Modules/filesystem/LocalFileSystem.h \
Source/WebCore/Modules/filesystem/MetadataCallback.h \
Source/WebCore/Modules/filesystem/Metadata.h \
Source/WebCore/Modules/filesystem/WorkerContextFileSystem.cpp \
Source/WebCore/Modules/filesystem/WorkerContextFileSystem.h \
Source/WebCore/Modules/filesystem/WorkerGlobalScopeFileSystem.cpp \
Source/WebCore/Modules/filesystem/WorkerGlobalScopeFileSystem.h \
Source/WebCore/Modules/gamepad/Gamepad.cpp \
Source/WebCore/Modules/gamepad/Gamepad.h \
Source/WebCore/Modules/gamepad/GamepadList.cpp \
......@@ -1970,8 +1970,8 @@ webcore_modules_sources += \
Source/WebCore/Modules/indexeddb/IndexedDB.h \
Source/WebCore/Modules/indexeddb/PageGroupIndexedDatabase.cpp \
Source/WebCore/Modules/indexeddb/PageGroupIndexedDatabase.h \
Source/WebCore/Modules/indexeddb/WorkerContextIndexedDatabase.cpp \
Source/WebCore/Modules/indexeddb/WorkerContextIndexedDatabase.h \
Source/WebCore/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp \
Source/WebCore/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.h \
Source/WebCore/Modules/mediasource/MediaSource.cpp \
Source/WebCore/Modules/mediasource/MediaSource.h \
Source/WebCore/Modules/mediasource/MediaSourceRegistry.cpp \
......@@ -2046,8 +2046,8 @@ webcore_modules_sources += \
Source/WebCore/Modules/notifications/Notification.cpp \
Source/WebCore/Modules/notifications/Notification.h \
Source/WebCore/Modules/notifications/NotificationPermissionCallback.h \
Source/WebCore/Modules/notifications/WorkerContextNotifications.cpp \
Source/WebCore/Modules/notifications/WorkerContextNotifications.h \
Source/WebCore/Modules/notifications/WorkerGlobalScopeNotifications.cpp \
Source/WebCore/Modules/notifications/WorkerGlobalScopeNotifications.h \
Source/WebCore/Modules/proximity/DeviceProximityClient.h \
Source/WebCore/Modules/proximity/DeviceProximityController.cpp \
Source/WebCore/Modules/proximity/DeviceProximityController.h \
......@@ -2231,8 +2231,8 @@ webcore_modules_sources += \
Source/WebCore/Modules/webdatabase/SQLTransactionStateMachine.h \
Source/WebCore/Modules/webdatabase/SQLTransactionSync.cpp \
Source/WebCore/Modules/webdatabase/SQLTransactionSync.h \
Source/WebCore/Modules/webdatabase/WorkerContextWebDatabase.cpp \
Source/WebCore/Modules/webdatabase/WorkerContextWebDatabase.h \
Source/WebCore/Modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp \
Source/WebCore/Modules/webdatabase/WorkerGlobalScopeWebDatabase.h \
Source/WebCore/Modules/websockets/CloseEvent.h \
Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp \
Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.h \
......@@ -2392,7 +2392,7 @@ webcore_sources += \
Source/WebCore/bindings/js/JSDOMWrapper.cpp \
Source/WebCore/bindings/js/JSDOMWrapper.h \
Source/WebCore/bindings/js/JSDataViewCustom.cpp \
Source/WebCore/bindings/js/JSDedicatedWorkerContextCustom.cpp \
Source/WebCore/bindings/js/JSDedicatedWorkerGlobalScopeCustom.cpp \
Source/WebCore/bindings/js/JSDeviceMotionEventCustom.cpp \
Source/WebCore/bindings/js/JSDeviceOrientationEventCustom.cpp \
Source/WebCore/bindings/js/JSDocumentCustom.cpp \
......@@ -2497,9 +2497,9 @@ webcore_sources += \
Source/WebCore/bindings/js/JSWebKitCSSKeyframesRuleCustom.cpp \
Source/WebCore/bindings/js/JSWebGLRenderingContextCustom.cpp \
Source/WebCore/bindings/js/JSWebKitPointCustom.cpp \
Source/WebCore/bindings/js/JSWorkerContextBase.cpp \
Source/WebCore/bindings/js/JSWorkerContextBase.h \
Source/WebCore/bindings/js/JSWorkerContextCustom.cpp \
Source/WebCore/bindings/js/JSWorkerGlobalScopeBase.cpp \
Source/WebCore/bindings/js/JSWorkerGlobalScopeBase.h \
Source/WebCore/bindings/js/JSWorkerGlobalScopeCustom.cpp \
Source/WebCore/bindings/js/JSWorkerCustom.cpp \
Source/WebCore/bindings/js/JSXMLHttpRequestCustom.cpp \
Source/WebCore/bindings/js/JSXMLHttpRequestUploadCustom.cpp \
......@@ -4731,14 +4731,14 @@ webcore_sources += \
Source/WebCore/WebCorePrefix.h \
Source/WebCore/workers/AbstractWorker.cpp \
Source/WebCore/workers/AbstractWorker.h \
Source/WebCore/workers/DedicatedWorkerContext.cpp \
Source/WebCore/workers/DedicatedWorkerContext.h \
Source/WebCore/workers/DedicatedWorkerGlobalScope.cpp \
Source/WebCore/workers/DedicatedWorkerGlobalScope.h \
Source/WebCore/workers/DedicatedWorkerThread.cpp \
Source/WebCore/workers/DedicatedWorkerThread.h \
Source/WebCore/workers/DefaultSharedWorkerRepository.cpp \
Source/WebCore/workers/DefaultSharedWorkerRepository.h \
Source/WebCore/workers/SharedWorkerContext.cpp \
Source/WebCore/workers/SharedWorkerContext.h \
Source/WebCore/workers/SharedWorkerGlobalScope.cpp \
Source/WebCore/workers/SharedWorkerGlobalScope.h \
Source/WebCore/workers/SharedWorker.cpp \
Source/WebCore/workers/SharedWorker.h \
Source/WebCore/workers/SharedWorkerRepository.cpp \
......@@ -4746,9 +4746,9 @@ webcore_sources += \
Source/WebCore/workers/SharedWorkerStrategy.h \
Source/WebCore/workers/SharedWorkerThread.cpp \
Source/WebCore/workers/SharedWorkerThread.h \
Source/WebCore/workers/WorkerContext.cpp \
Source/WebCore/workers/WorkerContext.h \
Source/WebCore/workers/WorkerContextProxy.h \
Source/WebCore/workers/WorkerGlobalScope.cpp \
Source/WebCore/workers/WorkerGlobalScope.h \
Source/WebCore/workers/WorkerGlobalScopeProxy.h \
Source/WebCore/workers/WorkerEventQueue.cpp \
Source/WebCore/workers/WorkerEventQueue.h \
Source/WebCore/workers/Worker.cpp \
......
......@@ -26,7 +26,7 @@
*/
#include "config.h"
#include "WorkerContextFileSystem.h"
#include "WorkerGlobalScopeFileSystem.h"
#if ENABLE(FILE_SYSTEM)
......@@ -44,11 +44,11 @@
#include "LocalFileSystem.h"
#include "SecurityOrigin.h"
#include "SyncCallbackHelper.h"
#include "WorkerContext.h"
#include "WorkerGlobalScope.h"
namespace WebCore {
void WorkerContextFileSystem::webkitRequestFileSystem(WorkerContext* worker, int type, long long size, PassRefPtr<FileSystemCallback> successCallback, PassRefPtr<ErrorCallback> errorCallback)
void WorkerGlobalScopeFileSystem::webkitRequestFileSystem(WorkerGlobalScope* worker, int type, long long size, PassRefPtr<FileSystemCallback> successCallback, PassRefPtr<ErrorCallback> errorCallback)
{
ScriptExecutionContext* secureContext = worker->scriptExecutionContext();
if (!AsyncFileSystem::isAvailable() || !secureContext->securityOrigin()->canAccessFileSystem()) {
......@@ -65,7 +65,7 @@ void WorkerContextFileSystem::webkitRequestFileSystem(WorkerContext* worker, int
LocalFileSystem::localFileSystem().requestFileSystem(worker, fileSystemType, size, FileSystemCallbacks::create(successCallback, errorCallback, worker, fileSystemType), AsynchronousFileSystem);
}
PassRefPtr<DOMFileSystemSync> WorkerContextFileSystem::webkitRequestFileSystemSync(WorkerContext* worker, int type, long long size, ExceptionCode& ec)
PassRefPtr<DOMFileSystemSync> WorkerGlobalScopeFileSystem::webkitRequestFileSystemSync(WorkerGlobalScope* worker, int type, long long size, ExceptionCode& ec)
{
ec = 0;
ScriptExecutionContext* secureContext = worker->scriptExecutionContext();
......@@ -85,7 +85,7 @@ PassRefPtr<DOMFileSystemSync> WorkerContextFileSystem::webkitRequestFileSystemSy
return helper.getResult(ec);
}
void WorkerContextFileSystem::webkitResolveLocalFileSystemURL(WorkerContext* worker, const String& url, PassRefPtr<EntryCallback> successCallback, PassRefPtr<ErrorCallback> errorCallback)
void WorkerGlobalScopeFileSystem::webkitResolveLocalFileSystemURL(WorkerGlobalScope* worker, const String& url, PassRefPtr<EntryCallback> successCallback, PassRefPtr<ErrorCallback> errorCallback)
{
KURL completedURL = worker->completeURL(url);
ScriptExecutionContext* secureContext = worker->scriptExecutionContext();
......@@ -104,7 +104,7 @@ void WorkerContextFileSystem::webkitResolveLocalFileSystemURL(WorkerContext* wor
LocalFileSystem::localFileSystem().readFileSystem(worker, type, ResolveURICallbacks::create(successCallback, errorCallback, worker, type, filePath));
}
PassRefPtr<EntrySync> WorkerContextFileSystem::webkitResolveLocalFileSystemSyncURL(WorkerContext* worker, const String& url, ExceptionCode& ec)
PassRefPtr<EntrySync> WorkerGlobalScopeFileSystem::webkitResolveLocalFileSystemSyncURL(WorkerGlobalScope* worker, const String& url, ExceptionCode& ec)
{
ec = 0;
KURL completedURL = worker->completeURL(url);
......@@ -134,8 +134,8 @@ PassRefPtr<EntrySync> WorkerContextFileSystem::webkitResolveLocalFileSystemSyncU
return entry.release();
}
COMPILE_ASSERT(static_cast<int>(WorkerContextFileSystem::TEMPORARY) == static_cast<int>(FileSystemTypeTemporary), enum_mismatch);
COMPILE_ASSERT(static_cast<int>(WorkerContextFileSystem::PERSISTENT) == static_cast<int>(FileSystemTypePersistent), enum_mismatch);
COMPILE_ASSERT(static_cast<int>(WorkerGlobalScopeFileSystem::TEMPORARY) == static_cast<int>(FileSystemTypeTemporary), enum_mismatch);
COMPILE_ASSERT(static_cast<int>(WorkerGlobalScopeFileSystem::PERSISTENT) == static_cast<int>(FileSystemTypePersistent), enum_mismatch);
} // namespace WebCore
......
......@@ -24,8 +24,8 @@
*
*/
#ifndef WorkerContextFileSystem_h
#define WorkerContextFileSystem_h
#ifndef WorkerGlobalScopeFileSystem_h
#define WorkerGlobalScopeFileSystem_h
#if ENABLE(FILE_SYSTEM)
......@@ -38,27 +38,27 @@ class EntryCallback;
class EntrySync;
class ErrorCallback;
class FileSystemCallback;
class WorkerContext;
class WorkerGlobalScope;
class WorkerContextFileSystem {
class WorkerGlobalScopeFileSystem {
public:
enum {
TEMPORARY,
PERSISTENT,
};
static void webkitRequestFileSystem(WorkerContext*, int type, long long size, PassRefPtr<FileSystemCallback> successCallback, PassRefPtr<ErrorCallback>);
static PassRefPtr<DOMFileSystemSync> webkitRequestFileSystemSync(WorkerContext*, int type, long long size, ExceptionCode&);
static void webkitResolveLocalFileSystemURL(WorkerContext*, const String& url, PassRefPtr<EntryCallback> successCallback, PassRefPtr<ErrorCallback>);
static PassRefPtr<EntrySync> webkitResolveLocalFileSystemSyncURL(WorkerContext*, const String& url, ExceptionCode&);
static void webkitRequestFileSystem(WorkerGlobalScope*, int type, long long size, PassRefPtr<FileSystemCallback> successCallback, PassRefPtr<ErrorCallback>);
static PassRefPtr<DOMFileSystemSync> webkitRequestFileSystemSync(WorkerGlobalScope*, int type, long long size, ExceptionCode&);
static void webkitResolveLocalFileSystemURL(WorkerGlobalScope*, const String& url, PassRefPtr<EntryCallback> successCallback, PassRefPtr<ErrorCallback>);
static PassRefPtr<EntrySync> webkitResolveLocalFileSystemSyncURL(WorkerGlobalScope*, const String& url, ExceptionCode&);
private: