Skip to content
  • charles.wei@torchmobile.com.cn's avatar
    IndexedDB: should make the LevelDB persistant to the directory indicated in... · c0516122
    charles.wei@torchmobile.com.cn authored
    IndexedDB: should make the LevelDB persistant to the directory indicated in PageGroupSettings::indexedDBDataBasePath
    https://bugs.webkit.org/show_bug.cgi?id=88338
    
    Reviewed by David Levin.
    
    Source/WebCore:
    
    If the indexedDB runs in main thread it can access the GroupSettings via the document;
    otherwise, we need to pass the page GroupSettings to the worker thread so that accessible
    to the indexedDB running in WorkerContext.
    
    * Modules/indexeddb/IDBFactory.cpp:
    (WebCore::IDBFactory::open):
    * workers/DedicatedWorkerThread.cpp:
    (WebCore::DedicatedWorkerThread::create):
    (WebCore::DedicatedWorkerThread::DedicatedWorkerThread):
    * workers/DedicatedWorkerThread.h:
    (DedicatedWorkerThread):
    * workers/DefaultSharedWorkerRepository.cpp:
    (SharedWorkerProxy):
    (WebCore::SharedWorkerProxy::groupSettings):
    (WebCore):
    (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
    * workers/SharedWorkerThread.cpp:
    (WebCore::SharedWorkerThread::create):
    (WebCore::SharedWorkerThread::SharedWorkerThread):
    * workers/SharedWorkerThread.h:
    (SharedWorkerThread):
    * workers/WorkerMessagingProxy.cpp:
    (WebCore::WorkerMessagingProxy::startWorkerContext):
    * workers/WorkerThread.cpp:
    (WebCore::WorkerThreadStartupData::create):
    (WorkerThreadStartupData):
    (WebCore::WorkerThreadStartupData::WorkerThreadStartupData):
    (WebCore::WorkerThread::WorkerThread):
    (WebCore::WorkerThread::groupSettings):
    (WebCore):
    * workers/WorkerThread.h:
    (WorkerThread):
    
    Source/WebKit/chromium:
    
    * src/WebSharedWorkerImpl.cpp:
    (WebKit::WebSharedWorkerImpl::startWorkerContext):
    * src/WebWorkerClientImpl.cpp:
    (WebKit::WebWorkerClientImpl::startWorkerContext):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121742 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c0516122