1. 21 Nov, 2013 1 commit
    • commit-queue@webkit.org's avatar
      Remove ENABLE_WORKERS · f0eff209
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105784
      
      .:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * Source/autotools/SetupWebKitFeatures.m4:
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      
      Source/WebCore:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      Source/WebKit:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
      
      Source/WebKit/efl:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * ewk/ewk_settings.cpp:
      (ewk_settings_memory_cache_clear):
      
      Source/WebKit/win:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * WebWorkersPrivate.cpp:
      (WebWorkersPrivate::workerThreadCount):
      
      Source/WTF:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * wtf/FeatureDefines.h:
      * wtf/nix/FeatureDefinesNix.h:
      
      Tools:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * Scripts/webkitperl/FeatureList.pm:
      
      WebKitLibraries:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * win/tools/vsprops/FeatureDefines.props:
      * win/tools/vsprops/FeatureDefinesCairo.props:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159679 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f0eff209
  2. 28 Aug, 2013 1 commit
  3. 27 Jun, 2013 1 commit
    • ch.dumez@sisa.samsung.com's avatar
      Rename WorkerContext to WorkerGlobalScope · 14792a6b
      ch.dumez@sisa.samsung.com authored
      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
      14792a6b
  4. 06 Feb, 2013 1 commit
    • mark.lam@apple.com's avatar
      Split openDatabase() between front and back end work. · a4fcc372
      mark.lam@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=107475.
      
      Reviewed by Anders Carlsson.
      
      The main work of splitting DatabaseManager::openDatabase() is in
      refactoring how DatabaseTracker::canEstablishDatabase() works. It used
      to check for adequate space quota, and if the check fails, it would call
      back into the client from inside canEstablishDatabase(). The call back
      allows the client to update the quota (if appropriate). Thereafter,
      canEstablishDatabase() will retry its quota check.
      
      In a webkit2 world, we'll want to minimize the traffic between the
      client (script side) and the server (sqlite db side), and ideally, we
      don't want the server to call back to the client. Note: the
      DatabaseTracker belongs on the server side.
      
      To achieve this, we split canEstablishDatabase() into 2 parts: the
      checks before the call back to the client, and the checks after.
      The first part will retain the name canEstablishDatabase(), and the
      second part will be named retryCanEstablishDatabase().
      We also added a DatabaseServer::openDatabase() function that can be
      called with a retry flag.
      
      The client side DatabaseManager::openDatabase() will call
      DatabaseServer::openDatabase(), which then calls canEstablishDatabase()
      to do its quota check. If there is enough quota,
      DatabaseServer::openDatabase() will proceed to open the backend database
      without return to the client first. The opened database will be returned
      to the client.
      
      If DatabaseServer::openDatabase() finds inadequate quota the first time,
      it will return with a DatabaseSizeExceededQuota error. The DatabaseManager
      (on the client side) will check for this error and call back to its client
      for an opportunity to increase the quota. Thereafter, the DatabaseManager
      will call DatabaseServer::openDatabase() again. This time,
      DatabaseServer::openDatabase() will call retryCanEstablishDatabase() to
      check the quota, and then open the backend database if there is enough
      quota.
      
      No new tests.
      
      * Modules/webdatabase/AbstractDatabaseServer.h:
      * Modules/webdatabase/DOMWindowWebDatabase.cpp:
      (WebCore::DOMWindowWebDatabase::openDatabase):
      * Modules/webdatabase/Database.cpp:
      (WebCore::Database::create):
      * Modules/webdatabase/Database.h:
      (Database):
      * Modules/webdatabase/DatabaseBackend.cpp:
      (WebCore::DatabaseBackend::performOpenAndVerify):
      * Modules/webdatabase/DatabaseBackend.h:
      (DatabaseBackend):
      * Modules/webdatabase/DatabaseBackendAsync.cpp:
      (WebCore::DatabaseBackendAsync::openAndVerifyVersion):
      (WebCore::DatabaseBackendAsync::performOpenAndVerify):
      * Modules/webdatabase/DatabaseBackendAsync.h:
      (DatabaseBackendAsync):
      * Modules/webdatabase/DatabaseBackendSync.cpp:
      (WebCore::DatabaseBackendSync::openAndVerifyVersion):
      * Modules/webdatabase/DatabaseBackendSync.h:
      (DatabaseBackendSync):
      * Modules/webdatabase/DatabaseError.h:
      (WebCore::ENUM_CLASS):
      * Modules/webdatabase/DatabaseManager.cpp:
      (WebCore::DatabaseManager::exceptionCodeForDatabaseError):
      (WebCore::DatabaseManager::openDatabaseBackend):
      (WebCore::DatabaseManager::openDatabase):
      (WebCore::DatabaseManager::openDatabaseSync):
      * Modules/webdatabase/DatabaseManager.h:
      (DatabaseManager):
      * Modules/webdatabase/DatabaseServer.cpp:
      (WebCore::DatabaseServer::openDatabase):
      (WebCore::DatabaseServer::createDatabase):
      * Modules/webdatabase/DatabaseServer.h:
      * Modules/webdatabase/DatabaseSync.cpp:
      (WebCore::DatabaseSync::create):
      * Modules/webdatabase/DatabaseSync.h:
      (DatabaseSync):
      * Modules/webdatabase/DatabaseTracker.cpp:
      (WebCore::DatabaseTracker::hasAdequateQuotaForOrigin):
      (WebCore::DatabaseTracker::canEstablishDatabase):
      (WebCore::DatabaseTracker::retryCanEstablishDatabase):
      * Modules/webdatabase/DatabaseTracker.h:
      (DatabaseTracker):
      * Modules/webdatabase/WorkerContextWebDatabase.cpp:
      (WebCore::WorkerContextWebDatabase::openDatabase):
      (WebCore::WorkerContextWebDatabase::openDatabaseSync):
      * Modules/webdatabase/chromium/DatabaseTrackerChromium.cpp:
      (WebCore::DatabaseTracker::canEstablishDatabase):
      (WebCore::DatabaseTracker::retryCanEstablishDatabase):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a4fcc372
  5. 01 Feb, 2013 1 commit
    • mark.lam@apple.com's avatar
      Replace ExceptionCode with DatabaseError in the openDatabase() code path. · 7e1adfcc
      mark.lam@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=108724.
      
      Reviewed by Alexey Proskuryakov.
      
      Also made DatabaseBackend::performOpenAndVerify() a little more
      straightforward and less repetitive.
      
      No new tests.
      
      * Modules/webdatabase/DOMWindowWebDatabase.cpp:
      (WebCore::DOMWindowWebDatabase::openDatabase):
      * Modules/webdatabase/Database.cpp:
      (WebCore::Database::openAndVerifyVersion):
      (WebCore::Database::performOpenAndVerify):
      * Modules/webdatabase/Database.h:
      (Database):
      * Modules/webdatabase/DatabaseBackend.cpp:
      (WebCore::DoneCreatingDatabaseOnExitCaller::DoneCreatingDatabaseOnExitCaller):
      (WebCore::DoneCreatingDatabaseOnExitCaller::~DoneCreatingDatabaseOnExitCaller):
      (DoneCreatingDatabaseOnExitCaller):
      (WebCore::DoneCreatingDatabaseOnExitCaller::openSucceeded):
      (WebCore::DatabaseBackend::performOpenAndVerify):
      * Modules/webdatabase/DatabaseBackend.h:
      * Modules/webdatabase/DatabaseManager.cpp:
      (WebCore::DatabaseManager::openDatabase):
      (WebCore::DatabaseManager::openDatabaseSync):
      * Modules/webdatabase/DatabaseManager.h:
      (DatabaseManager):
      * Modules/webdatabase/DatabaseSync.cpp:
      (WebCore::DatabaseSync::openAndVerifyVersion):
      * Modules/webdatabase/DatabaseSync.h:
      (DatabaseSync):
      * Modules/webdatabase/DatabaseTask.cpp:
      (WebCore::Database::DatabaseOpenTask::DatabaseOpenTask):
      (WebCore::Database::DatabaseOpenTask::doPerformTask):
      * Modules/webdatabase/DatabaseTask.h:
      (WebCore::Database::DatabaseOpenTask::create):
      (Database::DatabaseOpenTask):
      * Modules/webdatabase/WorkerContextWebDatabase.cpp:
      (WebCore::WorkerContextWebDatabase::openDatabase):
      (WebCore::WorkerContextWebDatabase::openDatabaseSync):
      * WebCore.gypi:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7e1adfcc
  6. 18 Dec, 2012 1 commit
    • mark.lam@apple.com's avatar
      Initial refactoring of database functionality into the manager and server. · c2b0a80f
      mark.lam@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=104748.
      
      Reviewed by Brady Eidson.
      
      This is not a complete refactor, but a stepping stone on the way to isolating
      script side database activity from the SQL backend.
      
      No new tests.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/webdatabase/AbstractDatabase.cpp:
      (WebCore):
      (WebCore::updateGuidVersionMap):
      (WebCore::guidForOriginAndName):
      (WebCore::AbstractDatabase::AbstractDatabase):
      (WebCore::AbstractDatabase::maximumSize):
      * Modules/webdatabase/AbstractDatabase.h:
      (AbstractDatabase):
      - Moved isAvailable() and setIsAvailable() to the DatabaseManager.
      * Modules/webdatabase/AbstractDatabaseServer.h:
      (AbstractDatabaseServer):
      * Modules/webdatabase/DBBackendServer.cpp: Added.
      (WebCore::DBBackend::Server::initialize):
      (WebCore::DBBackend::Server::setClient):
      (WebCore::DBBackend::Server::databaseDirectoryPath):
      (WebCore::DBBackend::Server::setDatabaseDirectoryPath):
      (WebCore::DBBackend::Server::fullPathForDatabase):
      (WebCore::DBBackend::Server::hasEntryForOrigin):
      (WebCore::DBBackend::Server::origins):
      (WebCore::DBBackend::Server::databaseNamesForOrigin):
      (WebCore::DBBackend::Server::detailsForNameAndOrigin):
      (WebCore::DBBackend::Server::usageForOrigin):
      (WebCore::DBBackend::Server::quotaForOrigin):
      (WebCore::DBBackend::Server::setQuota):
      (WebCore::DBBackend::Server::deleteAllDatabases):
      (WebCore::DBBackend::Server::deleteOrigin):
      (WebCore::DBBackend::Server::deleteDatabase):
      (WebCore::DBBackend::Server::scheduleNotifyDatabaseChanged):
      (WebCore::DBBackend::Server::databaseChanged):
      (WebCore::DBBackend::Server::closeDatabasesImmediately):
      (WebCore::DBBackend::Server::interruptAllDatabasesForContext):
      (WebCore::DBBackend::Server::canEstablishDatabase):
      (WebCore::DBBackend::Server::addOpenDatabase):
      (WebCore::DBBackend::Server::removeOpenDatabase):
      (WebCore::DBBackend::Server::setDatabaseDetails):
      (WebCore::DBBackend::Server::getMaxSizeForDatabase):
      - Refactored all calls to the DatabaseTracker to go thru the DBBackend::Server.
      * Modules/webdatabase/DBBackendServer.h:
      * Modules/webdatabase/DOMWindowWebDatabase.cpp:
      (WebCore::DOMWindowWebDatabase::openDatabase):
      * Modules/webdatabase/Database.cpp:
      (WebCore::Database::close):
      (WebCore::Database::maximumSize):
      * Modules/webdatabase/Database.h:
      (Database):
      - Moved the openDatabase() factory method to the DatabaseManager.
      - Removed the unused deliverPendingCallback() prototype.
      * Modules/webdatabase/DatabaseBasicTypes.h: Added.
      - A place to define some common basic types used by the database module.
      * Modules/webdatabase/DatabaseContext.cpp:
      (WebCore::DatabaseContext::databaseExceededQuota):
      * Modules/webdatabase/DatabaseManager.cpp:
      (WebCore::DatabaseManager::DatabaseManager):
      (WebCore::DatabaseManager::initialize):
      (WebCore::DatabaseManager::setClient):
      (WebCore::DatabaseManager::databaseDirectoryPath):
      (WebCore::DatabaseManager::setDatabaseDirectoryPath):
      (WebCore::DatabaseManager::isAvailable):
      (WebCore::DatabaseManager::setIsAvailable):
      (DatabaseCreationCallbackTask):
      (WebCore::DatabaseCreationCallbackTask::create):
      (WebCore::DatabaseCreationCallbackTask::performTask):
      (WebCore::DatabaseCreationCallbackTask::DatabaseCreationCallbackTask):
      (WebCore::DatabaseManager::openDatabase):
      (WebCore::DatabaseManager::openDatabaseSync):
      (WebCore::DatabaseManager::setHasOpenDatabases):
      (WebCore::DatabaseManager::fullPathForDatabase):
      (WebCore::DatabaseManager::hasEntryForOrigin):
      (WebCore::DatabaseManager::origins):
      (WebCore::DatabaseManager::databaseNamesForOrigin):
      (WebCore::DatabaseManager::detailsForNameAndOrigin):
      (WebCore::DatabaseManager::usageForOrigin):
      (WebCore::DatabaseManager::quotaForOrigin):
      (WebCore::DatabaseManager::setQuota):
      (WebCore::DatabaseManager::deleteAllDatabases):
      (WebCore::DatabaseManager::deleteOrigin):
      (WebCore::DatabaseManager::deleteDatabase):
      (WebCore::DatabaseManager::scheduleNotifyDatabaseChanged):
      (WebCore::DatabaseManager::databaseChanged):
      (WebCore::DatabaseManager::closeDatabasesImmediately):
      (WebCore::DatabaseManager::interruptAllDatabasesForContext):
      (WebCore::DatabaseManager::canEstablishDatabase):
      (WebCore::DatabaseManager::addOpenDatabase):
      (WebCore::DatabaseManager::removeOpenDatabase):
      (WebCore::DatabaseManager::setDatabaseDetails):
      (WebCore::DatabaseManager::getMaxSizeForDatabase):
      * Modules/webdatabase/DatabaseManager.h:
      (DatabaseManager):
      * Modules/webdatabase/DatabaseSync.cpp:
      (WebCore::DatabaseSync::~DatabaseSync):
      (WebCore::DatabaseSync::closeImmediately):
      * Modules/webdatabase/DatabaseSync.h:
      (DatabaseSync):
      - Moved the openDatabaseSync() factory method to the DatabaseManager.
      * Modules/webdatabase/DatabaseTask.h:
      * Modules/webdatabase/SQLResultSet.h:
      * Modules/webdatabase/SQLStatementSync.h:
      * Modules/webdatabase/SQLTransaction.h:
      * Modules/webdatabase/SQLTransactionClient.cpp:
      (WebCore::SQLTransactionClient::didCommitWriteTransaction):
      (WebCore::SQLTransactionClient::didExecuteStatement):
      (WebCore::SQLTransactionClient::didExceedQuota):
      * Modules/webdatabase/SQLTransactionSync.h:
      * Modules/webdatabase/WorkerContextWebDatabase.cpp:
      (WebCore::WorkerContextWebDatabase::openDatabase):
      (WebCore::WorkerContextWebDatabase::openDatabaseSync):
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138085 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c2b0a80f
  7. 22 Aug, 2012 1 commit
    • jpfau@apple.com's avatar
      Allow blocking of Web SQL databases in third-party web workers · bcbbf661
      jpfau@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=94170
      
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      Web workers did not previously know anything about the document that
      spawned them. This is undefined for shared workers, but for dedicated
      workers, we now pipe the information through.
      
      Tests: http/tests/security/cross-origin-worker-websql-allowed.html
             http/tests/security/cross-origin-worker-websql.html
      
      * Modules/webdatabase/WorkerContextWebDatabase.cpp: Pass information about the top origin to canAccessDatabase
      (WebCore::WorkerContextWebDatabase::openDatabase):
      (WebCore::WorkerContextWebDatabase::openDatabaseSync):
      * WebCore.exp.in: Make SecurityOrigin::isolatedCopy const
      * page/SecurityOrigin.cpp:
      (WebCore::SecurityOrigin::isolatedCopy):
      (WebCore::SecurityOrigin::canAccessStorage):
      * page/SecurityOrigin.h:
      * workers/DedicatedWorkerContext.cpp: Pass topOrigin
      (WebCore::DedicatedWorkerContext::create):
      (WebCore::DedicatedWorkerContext::DedicatedWorkerContext):
      * workers/DedicatedWorkerContext.h:
      (DedicatedWorkerContext):
      * workers/DedicatedWorkerThread.cpp: Pass topOrigin
      (WebCore::DedicatedWorkerThread::create):
      (WebCore::DedicatedWorkerThread::DedicatedWorkerThread):
      (WebCore::DedicatedWorkerThread::createWorkerContext):
      * workers/DedicatedWorkerThread.h:
      (DedicatedWorkerThread):
      * workers/SharedWorkerContext.cpp: Pass topOrigin
      (WebCore::SharedWorkerContext::SharedWorkerContext):
      * workers/SharedWorkerThread.cpp:
      (WebCore::SharedWorkerThread::SharedWorkerThread):
      (WebCore::SharedWorkerThread::createWorkerContext):
      * workers/SharedWorkerThread.h:
      (SharedWorkerThread): Pass topOrigin
      * workers/WorkerContext.cpp:
      (WebCore::WorkerContext::WorkerContext):
      * workers/WorkerContext.h:
      (WebCore::WorkerContext::topOrigin):
      (WorkerContext):
      * workers/WorkerMessagingProxy.cpp: Pass topOrigin
      (WebCore::WorkerMessagingProxy::startWorkerContext):
      * workers/WorkerThread.cpp:
      (WebCore::WorkerThreadStartupData::create):
      (WorkerThreadStartupData):
      (WebCore::WorkerThreadStartupData::WorkerThreadStartupData):
      (WebCore::WorkerThread::WorkerThread):
      (WebCore::WorkerThread::workerThread):
      * workers/WorkerThread.h:
      (WorkerThread):
      
      Source/WebKit/chromium:
      
      Web workers did not previously know anything about the document that
      spawned them. This is undefined for shared workers, but for dedicated
      workers, we now pipe the information through.
      
      * src/WebWorkerClientImpl.cpp:
      (WebKit::WebWorkerClientImpl::startWorkerContext): Pass top document's origin
      
      LayoutTests:
      
      Created tests for accessing openDatabase from a third party and first party dedicated workers when third-party blocking is on and off.
      
      * http/tests/security/cross-origin-worker-websql-allowed-expected.txt: Added.
      * http/tests/security/cross-origin-worker-websql-allowed.html: Added.
      * http/tests/security/cross-origin-worker-websql-expected.txt: Added.
      * http/tests/security/cross-origin-worker-websql.html: Added.
      * http/tests/security/resources/cross-origin-iframe-for-worker-websql.html: Added.
      * http/tests/security/resources/document-for-cross-origin-worker-websql.html: Added.
      * http/tests/security/resources/worker-for-websql.js: Added.
      (self.onmessage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126365 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bcbbf661
  8. 25 Mar, 2012 1 commit
    • haraken@chromium.org's avatar
      Move DOMWindowSQLDatabase.* to DOMWindowWebDatabase.*, and move... · f3836083
      haraken@chromium.org authored
      Move DOMWindowSQLDatabase.* to DOMWindowWebDatabase.*, and move WorkerContextSQLDatabase.* to WorkerContextWebDatabase.*
      https://bugs.webkit.org/show_bug.cgi?id=82146
      
      Reviewed by Adam Barth.
      
      Now SQLDatabase is renamed to WebDatabase (See Modules/webdatabase/).
      We should move DOMWindowSQLDatabase.* to DOMWindowWebDatabase.*,
      and move WorkerContextSQLDatabase.* to WorkerContextWebDatabase.*.
      We'll rename the SQL_DATABASE flag to the WEB_DATABASE flag in a follow-up patch.
      
      No tests. No change in behavior.
      
      * Modules/webdatabase/DOMWindowWebDatabase.cpp: Renamed from Source/WebCore/Modules/webdatabase/DOMWindowSQLDatabase.cpp.
      (WebCore):
      (WebCore::DOMWindowWebDatabase::openDatabase):
      * Modules/webdatabase/DOMWindowWebDatabase.h: Renamed from Source/WebCore/Modules/webdatabase/DOMWindowSQLDatabase.h.
      (WebCore):
      (DOMWindowWebDatabase):
      (WebCore::DOMWindowWebDatabase::DOMWindowWebDatabase):
      (WebCore::DOMWindowWebDatabase::~DOMWindowWebDatabase):
      * Modules/webdatabase/DOMWindowWebDatabase.idl: Renamed from Source/WebCore/Modules/webdatabase/DOMWindowSQLDatabase.idl.
      * Modules/webdatabase/WorkerContextWebDatabase.cpp: Renamed from Source/WebCore/Modules/webdatabase/WorkerContextSQLDatabase.cpp.
      (WebCore):
      (WebCore::WorkerContextWebDatabase::openDatabase):
      (WebCore::WorkerContextWebDatabase::openDatabaseSync):
      * Modules/webdatabase/WorkerContextWebDatabase.h: Renamed from Source/WebCore/Modules/webdatabase/WorkerContextSQLDatabase.h.
      (WebCore):
      (WorkerContextWebDatabase):
      (WebCore::WorkerContextWebDatabase::WorkerContextWebDatabase):
      (WebCore::WorkerContextWebDatabase::~WorkerContextWebDatabase):
      * Modules/webdatabase/WorkerContextWebDatabase.idl: Renamed from Source/WebCore/Modules/webdatabase/WorkerContextSQLDatabase.idl.
      
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112035 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f3836083
  9. 06 Mar, 2012 1 commit
    • abarth@webkit.org's avatar
      Move SQLDatabase code into Modules/webdatabase · 50344543
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80393
      
      Reviewed by Kentaro Hara.
      
      There are still a couple (minor) SQLDatabase references from WebCore
      proper, but we've gotten this code to the point where it makes sense to
      move it into the Modules directory.  (This patch just moves code---no
      behavior change.)
      
      * CMakeLists.txt:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * Modules/webdatabase: Added.
      * Modules/webdatabase/AbstractDatabase.cpp: Copied from Source/WebCore/storage/AbstractDatabase.cpp.
      * Modules/webdatabase/AbstractDatabase.h: Copied from Source/WebCore/storage/AbstractDatabase.h.
      * Modules/webdatabase/ChangeVersionWrapper.cpp: Copied from Source/WebCore/storage/ChangeVersionWrapper.cpp.
      * Modules/webdatabase/ChangeVersionWrapper.h: Copied from Source/WebCore/storage/ChangeVersionWrapper.h.
      * Modules/webdatabase/DOMWindowSQLDatabase.cpp: Copied from Source/WebCore/storage/DOMWindowSQLDatabase.cpp.
      * Modules/webdatabase/DOMWindowSQLDatabase.h: Copied from Source/WebCore/storage/DOMWindowSQLDatabase.h.
      * Modules/webdatabase/DOMWindowSQLDatabase.idl: Copied from Source/WebCore/storage/DOMWindowSQLDatabase.idl.
      * Modules/webdatabase/Database.cpp: Copied from Source/WebCore/storage/Database.cpp.
      * Modules/webdatabase/Database.h: Copied from Source/WebCore/storage/Database.h.
      * Modules/webdatabase/Database.idl: Copied from Source/WebCore/storage/Database.idl.
      * Modules/webdatabase/DatabaseAuthorizer.cpp: Copied from Source/WebCore/storage/DatabaseAuthorizer.cpp.
      * Modules/webdatabase/DatabaseAuthorizer.h: Copied from Source/WebCore/storage/DatabaseAuthorizer.h.
      * Modules/webdatabase/DatabaseCallback.h: Copied from Source/WebCore/storage/DatabaseCallback.h.
      * Modules/webdatabase/DatabaseCallback.idl: Copied from Source/WebCore/storage/DatabaseCallback.idl.
      * Modules/webdatabase/DatabaseContext.cpp: Copied from Source/WebCore/storage/DatabaseContext.cpp.
      * Modules/webdatabase/DatabaseContext.h: Copied from Source/WebCore/storage/DatabaseContext.h.
      * Modules/webdatabase/DatabaseDetails.h: Copied from Source/WebCore/storage/DatabaseDetails.h.
      * Modules/webdatabase/DatabaseSync.cpp: Copied from Source/WebCore/storage/DatabaseSync.cpp.
      * Modules/webdatabase/DatabaseSync.h: Copied from Source/WebCore/storage/DatabaseSync.h.
      * Modules/webdatabase/DatabaseSync.idl: Copied from Source/WebCore/storage/DatabaseSync.idl.
      * Modules/webdatabase/DatabaseTask.cpp: Copied from Source/WebCore/storage/DatabaseTask.cpp.
      * Modules/webdatabase/DatabaseTask.h: Copied from Source/WebCore/storage/DatabaseTask.h.
      * Modules/webdatabase/DatabaseThread.cpp: Copied from Source/WebCore/storage/DatabaseThread.cpp.
      * Modules/webdatabase/DatabaseThread.h: Copied from Source/WebCore/storage/DatabaseThread.h.
      * Modules/webdatabase/DatabaseTracker.cpp: Copied from Source/WebCore/storage/DatabaseTracker.cpp.
      * Modules/webdatabase/DatabaseTracker.h: Copied from Source/WebCore/storage/DatabaseTracker.h.
      * Modules/webdatabase/DatabaseTrackerClient.h: Copied from Source/WebCore/storage/DatabaseTrackerClient.h.
      * Modules/webdatabase/OriginQuotaManager.cpp: Copied from Source/WebCore/storage/OriginQuotaManager.cpp.
      * Modules/webdatabase/OriginQuotaManager.h: Copied from Source/WebCore/storage/OriginQuotaManager.h.
      * Modules/webdatabase/OriginUsageRecord.cpp: Copied from Source/WebCore/storage/OriginUsageRecord.cpp.
      * Modules/webdatabase/OriginUsageRecord.h: Copied from Source/WebCore/storage/OriginUsageRecord.h.
      * Modules/webdatabase/SQLCallbackWrapper.h: Copied from Source/WebCore/storage/SQLCallbackWrapper.h.
      * Modules/webdatabase/SQLError.h: Copied from Source/WebCore/storage/SQLError.h.
      * Modules/webdatabase/SQLError.idl: Copied from Source/WebCore/storage/SQLError.idl.
      * Modules/webdatabase/SQLException.cpp: Copied from Source/WebCore/storage/SQLException.cpp.
      * Modules/webdatabase/SQLException.h: Copied from Source/WebCore/storage/SQLException.h.
      * Modules/webdatabase/SQLException.idl: Copied from Source/WebCore/storage/SQLException.idl.
      * Modules/webdatabase/SQLResultSet.cpp: Copied from Source/WebCore/storage/SQLResultSet.cpp.
      * Modules/webdatabase/SQLResultSet.h: Copied from Source/WebCore/storage/SQLResultSet.h.
      * Modules/webdatabase/SQLResultSet.idl: Copied from Source/WebCore/storage/SQLResultSet.idl.
      * Modules/webdatabase/SQLResultSetRowList.cpp: Copied from Source/WebCore/storage/SQLResultSetRowList.cpp.
      * Modules/webdatabase/SQLResultSetRowList.h: Copied from Source/WebCore/storage/SQLResultSetRowList.h.
      * Modules/webdatabase/SQLResultSetRowList.idl: Copied from Source/WebCore/storage/SQLResultSetRowList.idl.
      * Modules/webdatabase/SQLStatement.cpp: Copied from Source/WebCore/storage/SQLStatement.cpp.
      * Modules/webdatabase/SQLStatement.h: Copied from Source/WebCore/storage/SQLStatement.h.
      * Modules/webdatabase/SQLStatementCallback.h: Copied from Source/WebCore/storage/SQLStatementCallback.h.
      * Modules/webdatabase/SQLStatementCallback.idl: Copied from Source/WebCore/storage/SQLStatementCallback.idl.
      * Modules/webdatabase/SQLStatementErrorCallback.h: Copied from Source/WebCore/storage/SQLStatementErrorCallback.h.
      * Modules/webdatabase/SQLStatementErrorCallback.idl: Copied from Source/WebCore/storage/SQLStatementErrorCallback.idl.
      * Modules/webdatabase/SQLStatementSync.cpp: Copied from Source/WebCore/storage/SQLStatementSync.cpp.
      * Modules/webdatabase/SQLStatementSync.h: Copied from Source/WebCore/storage/SQLStatementSync.h.
      * Modules/webdatabase/SQLTransaction.cpp: Copied from Source/WebCore/storage/SQLTransaction.cpp.
      * Modules/webdatabase/SQLTransaction.h: Copied from Source/WebCore/storage/SQLTransaction.h.
      * Modules/webdatabase/SQLTransaction.idl: Copied from Source/WebCore/storage/SQLTransaction.idl.
      * Modules/webdatabase/SQLTransactionCallback.h: Copied from Source/WebCore/storage/SQLTransactionCallback.h.
      * Modules/webdatabase/SQLTransactionCallback.idl: Copied from Source/WebCore/storage/SQLTransactionCallback.idl.
      * Modules/webdatabase/SQLTransactionClient.cpp: Copied from Source/WebCore/storage/SQLTransactionClient.cpp.
      * Modules/webdatabase/SQLTransactionClient.h: Copied from Source/WebCore/storage/SQLTransactionClient.h.
      * Modules/webdatabase/SQLTransactionCoordinator.cpp: Copied from Source/WebCore/storage/SQLTransactionCoordinator.cpp.
      * Modules/webdatabase/SQLTransactionCoordinator.h: Copied from Source/WebCore/storage/SQLTransactionCoordinator.h.
      * Modules/webdatabase/SQLTransactionErrorCallback.h: Copied from Source/WebCore/storage/SQLTransactionErrorCallback.h.
      * Modules/webdatabase/SQLTransactionErrorCallback.idl: Copied from Source/WebCore/storage/SQLTransactionErrorCallback.idl.
      * Modules/webdatabase/SQLTransactionSync.cpp: Copied from Source/WebCore/storage/SQLTransactionSync.cpp.
      * Modules/webdatabase/SQLTransactionSync.h: Copied from Source/WebCore/storage/SQLTransactionSync.h.
      * Modules/webdatabase/SQLTransactionSync.idl: Copied from Source/WebCore/storage/SQLTransactionSync.idl.
      * Modules/webdatabase/SQLTransactionSyncCallback.h: Copied from Source/WebCore/storage/SQLTransactionSyncCallback.h.
      * Modules/webdatabase/SQLTransactionSyncCallback.idl: Copied from Source/WebCore/storage/SQLTransactionSyncCallback.idl.
      * Modules/webdatabase/WorkerContextSQLDatabase.cpp: Copied from Source/WebCore/storage/WorkerContextSQLDatabase.cpp.
      * Modules/webdatabase/WorkerContextSQLDatabase.h: Copied from Source/WebCore/storage/WorkerContextSQLDatabase.h.
      * Modules/webdatabase/WorkerContextSQLDatabase.idl: Copied from Source/WebCore/storage/WorkerContextSQLDatabase.idl.
      * Modules/webdatabase/chromium: Added.
      * Modules/webdatabase/chromium/DatabaseObserver.h: Copied from Source/WebCore/storage/chromium/DatabaseObserver.h.
      * Modules/webdatabase/chromium/DatabaseTrackerChromium.cpp: Copied from Source/WebCore/storage/chromium/DatabaseTrackerChromium.cpp.
      * Modules/webdatabase/chromium/QuotaTracker.cpp: Copied from Source/WebCore/storage/chromium/QuotaTracker.cpp.
      * Modules/webdatabase/chromium/QuotaTracker.h: Copied from Source/WebCore/storage/chromium/QuotaTracker.h.
      * Modules/webdatabase/chromium/SQLTransactionClientChromium.cpp: Copied from Source/WebCore/storage/chromium/SQLTransactionClientChromium.cpp.
      * Target.pri:
      * WebCore.gyp/WebCore.gyp:
      * WebCore.gypi:
      * WebCore.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcproj/WebCoreCommon.vsprops:
      * WebCore.vcproj/copyForwardingHeaders.cmd:
      * WebCore.xcodeproj/project.pbxproj:
      * storage/AbstractDatabase.cpp: Removed.
      * storage/AbstractDatabase.h: Removed.
      * storage/ChangeVersionWrapper.cpp: Removed.
      * storage/ChangeVersionWrapper.h: Removed.
      * storage/DOMWindowSQLDatabase.cpp: Removed.
      * storage/DOMWindowSQLDatabase.h: Removed.
      * storage/DOMWindowSQLDatabase.idl: Removed.
      * storage/Database.cpp: Removed.
      * storage/Database.h: Removed.
      * storage/Database.idl: Removed.
      * storage/DatabaseAuthorizer.cpp: Removed.
      * storage/DatabaseAuthorizer.h: Removed.
      * storage/DatabaseCallback.h: Removed.
      * storage/DatabaseCallback.idl: Removed.
      * storage/DatabaseContext.cpp: Removed.
      * storage/DatabaseContext.h: Removed.
      * storage/DatabaseDetails.h: Removed.
      * storage/DatabaseSync.cpp: Removed.
      * storage/DatabaseSync.h: Removed.
      * storage/DatabaseSync.idl: Removed.
      * storage/DatabaseTask.cpp: Removed.
      * storage/DatabaseTask.h: Removed.
      * storage/DatabaseThread.cpp: Removed.
      * storage/DatabaseThread.h: Removed.
      * storage/DatabaseTracker.cpp: Removed.
      * storage/DatabaseTracker.h: Removed.
      * storage/DatabaseTrackerClient.h: Removed.
      * storage/OriginQuotaManager.cpp: Removed.
      * storage/OriginQuotaManager.h: Removed.
      * storage/OriginUsageRecord.cpp: Removed.
      * storage/OriginUsageRecord.h: Removed.
      * storage/SQLCallbackWrapper.h: Removed.
      * storage/SQLError.h: Removed.
      * storage/SQLError.idl: Removed.
      * storage/SQLException.cpp: Removed.
      * storage/SQLException.h: Removed.
      * storage/SQLException.idl: Removed.
      * storage/SQLResultSet.cpp: Removed.
      * storage/SQLResultSet.h: Removed.
      * storage/SQLResultSet.idl: Removed.
      * storage/SQLResultSetRowList.cpp: Removed.
      * storage/SQLResultSetRowList.h: Removed.
      * storage/SQLResultSetRowList.idl: Removed.
      * storage/SQLStatement.cpp: Removed.
      * storage/SQLStatement.h: Removed.
      * storage/SQLStatementCallback.h: Removed.
      * storage/SQLStatementCallback.idl: Removed.
      * storage/SQLStatementErrorCallback.h: Removed.
      * storage/SQLStatementErrorCallback.idl: Removed.
      * storage/SQLStatementSync.cpp: Removed.
      * storage/SQLStatementSync.h: Removed.
      * storage/SQLTransaction.cpp: Removed.
      * storage/SQLTransaction.h: Removed.
      * storage/SQLTransaction.idl: Removed.
      * storage/SQLTransactionCallback.h: Removed.
      * storage/SQLTransactionCallback.idl: Removed.
      * storage/SQLTransactionClient.cpp: Removed.
      * storage/SQLTransactionClient.h: Removed.
      * storage/SQLTransactionCoordinator.cpp: Removed.
      * storage/SQLTransactionCoordinator.h: Removed.
      * storage/SQLTransactionErrorCallback.h: Removed.
      * storage/SQLTransactionErrorCallback.idl: Removed.
      * storage/SQLTransactionSync.cpp: Removed.
      * storage/SQLTransactionSync.h: Removed.
      * storage/SQLTransactionSync.idl: Removed.
      * storage/SQLTransactionSyncCallback.h: Removed.
      * storage/SQLTransactionSyncCallback.idl: Removed.
      * storage/WorkerContextSQLDatabase.cpp: Removed.
      * storage/WorkerContextSQLDatabase.h: Removed.
      * storage/WorkerContextSQLDatabase.idl: Removed.
      * storage/chromium/DatabaseObserver.h: Removed.
      * storage/chromium/DatabaseTrackerChromium.cpp: Removed.
      * storage/chromium/QuotaTracker.cpp: Removed.
      * storage/chromium/QuotaTracker.h: Removed.
      * storage/chromium/SQLTransactionClientChromium.cpp: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109877 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      50344543
  10. 05 Mar, 2012 1 commit
    • abarth@webkit.org's avatar
      WorkerContext shouldn't need to know about SQLDatabase · 7285fd23
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80352
      
      Reviewed by Eric Seidel.
      
      This patch removes the SQLDatabase functions from WorkerContext in
      preparation for moving the SQLDatabase code into a module.  These
      functions don't interact with the rest of WorkerContext.
      
      * CMakeLists.txt:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * storage/DOMWindowSQLDatabase.cpp:
      * storage/WorkerContextSQLDatabase.cpp: Added.
      (WebCore):
      (WebCore::WorkerContextSQLDatabase::openDatabase):
      (WebCore::WorkerContextSQLDatabase::openDatabaseSync):
      * storage/WorkerContextSQLDatabase.h: Added.
      (WebCore):
      (WorkerContextSQLDatabase):
      (WebCore::WorkerContextSQLDatabase::WorkerContextSQLDatabase):
      (WebCore::WorkerContextSQLDatabase::~WorkerContextSQLDatabase):
      * storage/WorkerContextSQLDatabase.idl: Added.
      * workers/WorkerContext.cpp:
      (WebCore):
      * workers/WorkerContext.h:
      (WebCore):
      (WorkerContext):
      * workers/WorkerContext.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109833 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7285fd23
  11. 27 Feb, 2012 1 commit
  12. 10 Jan, 2012 2 commits
    • haraken@chromium.org's avatar
      Remove redundant code from DOMWindowSQLDatabase.cpp · dae58cf0
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=76010
      
      Reviewed by Adam Barth.
      
      This patch removes redundant code from DOMWindowSQLDatabase.cpp.
      
      - Remove window->frame() check, since window->frame() is always true when
        window->isCurrentlyDisplayedInFrame() is true.
      - window->frame()->document() can just be window->document()
      
      Tests: storage/open-database-creation-callback-isolated-world.html
             storage/open-database-creation-callback.html
             storage/open-database-empty-version.html
             storage/open-database-over-quota.html
             storage/open-database-set-empty-version.html
             storage/open-database-while-transaction-in-progress.html
      
      * storage/DOMWindowSQLDatabase.cpp:
      (WebCore::DOMWindowSQLDatabase::openDatabase):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104659 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dae58cf0
    • haraken@chromium.org's avatar
      Use the [Supplemental] IDL in SQLDatabase · 560c7635
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=76004
      
      Reviewed by Adam Barth.
      
      We've been working on WebKit modularization. By using the [Supplemental] IDL,
      we can move SQLDatabase related code from WebCore/page/DOMWindow.{h,cpp,idl}
      to WebCore/storage/DOMWindowSQLDatabase.{h,cpp,idl}.
      
      Tests: storage/open-database-creation-callback-isolated-world.html
             storage/open-database-creation-callback.html
             storage/open-database-empty-version.html
             storage/open-database-over-quota.html
             storage/open-database-set-empty-version.html
             storage/open-database-while-transaction-in-progress.html
      
      * CMakeLists.txt: Added DOMWindowSQLDatabase.{idl,h,cpp} to the build script.
      * DerivedSources.make: Ditto.
      * DerivedSources.pri: Ditto.
      * GNUmakefile.list.am: Ditto.
      * Target.pri: Ditto.
      * WebCore.gypi: Ditto.
      * WebCore.vcproj/WebCore.vcproj: Ditto.
      * WebCore.xcodeproj/project.pbxproj: Ditto.
      
      * page/DOMWindow.cpp: Removed SQLDatabase related code.
      * page/DOMWindow.idl: Ditto.
      * page/DOMWindow.h: Ditto. Moved isCurrentlyDisplayedInFrame() from private: to public:
      so that DOMWindowSQLDatabase::openDatabase() can access it.
      
      * storage/DOMWindowSQLDatabase.cpp: Added. Moved openDatabase() from DOMWindow.cpp to here.
      (WebCore::DOMWindowSQLDatabase::openDatabase):
      * storage/DOMWindowSQLDatabase.h: Added. Moved openDatabase() from DOMWindow.h to here.
      * storage/DOMWindowSQLDatabase.idl: Added. Using the [Supplemental] IDL, moved openDatabase()
      and SQLException from DOMWindow.idl to here.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104654 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      560c7635