Remove StorageProcess
authorsihui_liu@apple.com <sihui_liu@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 1 Oct 2018 20:44:06 +0000 (20:44 +0000)
committersihui_liu@apple.com <sihui_liu@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 1 Oct 2018 20:44:06 +0000 (20:44 +0000)
commit5ed7726d29c59b190763776bb4c9a1d8d17442bf
tree12229b88e20d919fab3233e37885fe52ed5a4031
parentc373384446000c2b2d859574739b1f5ac8e6f33f
Remove StorageProcess
https://bugs.webkit.org/show_bug.cgi?id=189975

Reviewed by Geoffrey Garen.

Source/WebCore:

Clean up code. No behavior change.

* English.lproj/Localizable.strings:

Source/WebKit:

* CMakeLists.txt:
* Configurations/Storage-OSX-sandbox.entitlements: Removed.
* Configurations/StorageService.xcconfig: Removed.
* Configurations/WebKit.xcconfig:
* DerivedSources.make:
* NetworkProcess/IndexedDB/WebIDBConnectionToClient.cpp:
(WebKit::WebIDBConnectionToClient::putOrAdd):
* NetworkProcess/NetworkConnectionToWebProcess.cpp:
(WebKit::NetworkConnectionToWebProcess::establishIDBConnectionToServer):
* PlatformGTK.cmake:
* PlatformMac.cmake:
* PlatformWPE.cmake:
* PlatformWin.cmake:
* Shared/ProcessExecutablePath.h:
* Shared/Storage/StorageProcessCreationParameters.cpp: Removed.
* Shared/Storage/StorageProcessCreationParameters.h: Removed.
* Shared/glib/ProcessExecutablePathGLib.cpp:
(WebKit::executablePathOfStorageProcess): Deleted.
* Sources.txt:
* SourcesCocoa.txt:
* SourcesGTK.txt:
* SourcesWPE.txt:
* StorageProcess/EntryPoint/mac/XPCService/StorageService/Info.plist: Removed.
* StorageProcess/EntryPoint/mac/XPCService/StorageServiceEntryPoint.mm: Removed.
* StorageProcess/EntryPoint/unix/StorageProcessMain.cpp: Removed.
* StorageProcess/EntryPoint/win/StorageProcessMain.cpp: Removed.
* StorageProcess/StorageProcess.cpp: Removed.
* StorageProcess/StorageProcess.h: Removed.
* StorageProcess/StorageProcess.messages.in: Removed.
* StorageProcess/StorageToWebProcessConnection.cpp: Removed.
* StorageProcess/StorageToWebProcessConnection.h: Removed.
* StorageProcess/StorageToWebProcessConnection.messages.in: Removed.
* StorageProcess/glib/StorageProcessMainGLib.cpp: Removed.
* StorageProcess/ios/StorageProcessIOS.mm: Removed.
* StorageProcess/mac/StorageProcessMac.mm: Removed.
* StorageProcess/mac/com.apple.WebKit.Storage.sb.in: Removed.
* StorageProcess/unix/StorageProcessMainUnix.h: Removed.
* StorageProcess/win/StorageProcessMainWin.cpp: Removed.
* StorageProcess/win/StorageProcessMainWin.h: Removed.
* UIProcess/API/C/WKContext.cpp:
(WKContextTerminateStorageProcess): Deleted.
(WKContextGetDatabaseProcessIdentifier): Deleted.
* UIProcess/API/C/WKContext.h:
* UIProcess/API/C/WKContextPrivate.h:
* UIProcess/API/Cocoa/WKProcessPool.mm:
(-[WKProcessPool _terminateStorageProcess]): Deleted.
(-[WKProcessPool _storageProcessIdentifier]): Deleted.
* UIProcess/API/Cocoa/WKProcessPoolPrivate.h:
* UIProcess/Launcher/glib/ProcessLauncherGLib.cpp:
(WebKit::ProcessLauncher::launchProcess):
* UIProcess/Launcher/win/ProcessLauncherWin.cpp:
(WebKit::processName):
* UIProcess/Storage/StorageProcessProxy.cpp: Removed.
* UIProcess/Storage/StorageProcessProxy.h: Removed.
* UIProcess/Storage/StorageProcessProxy.messages.in: Removed.
* UIProcess/WebContextClient.cpp:
(WebKit::WebContextClient::storageProcessDidCrash): Deleted.
* UIProcess/WebContextClient.h:
* UIProcess/WebContextSupplement.h:
* UIProcess/WebProcessPool.cpp:
(WebKit::WebProcessPool::sendMemoryPressureEvent):
(WebKit::WebProcessPool::setAnyPageGroupMightHavePrivateBrowsingEnabled):
(WebKit::WebProcessPool::ensureStorageProcessAndWebsiteDataStore): Deleted.
(WebKit::WebProcessPool::getStorageProcessConnection): Deleted.
(WebKit::WebProcessPool::storageProcessCrashed): Deleted.
(WebKit::WebProcessPool::storageProcessIdentifier): Deleted.
(WebKit::WebProcessPool::terminateStorageProcessForTesting): Deleted.
* UIProcess/WebProcessPool.h:
(WebKit::WebProcessPool::sendToStorageProcess): Deleted.
(WebKit::WebProcessPool::sendToStorageProcessRelaunchingIfNecessary): Deleted.
* UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::getStorageProcessConnection): Deleted.
* UIProcess/WebProcessProxy.h:
* UIProcess/WebProcessProxy.messages.in:
* UIProcess/WebsiteData/WebsiteDataStore.cpp:
(WebKit::WebsiteDataStore::~WebsiteDataStore):
(WebKit::WebsiteDataStore::storageProcessParameters): Deleted.
* UIProcess/WebsiteData/WebsiteDataStore.h:
* WebKit.xcodeproj/project.pbxproj:
* WebProcess/Databases/IndexedDB/WebIDBConnectionToServer.h:
* WebProcess/Storage/WebServiceWorkerProvider.cpp:
* WebProcess/Storage/WebToStorageProcessConnection.cpp: Removed.
* WebProcess/Storage/WebToStorageProcessConnection.h: Removed.
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::establishWorkerContextConnectionToNetworkProcess):
(WebKit::WebProcess::webToStorageProcessConnectionClosed): Deleted.
(WebKit::WebProcess::ensureWebToStorageProcessConnection): Deleted.
* WebProcess/WebProcess.h:
* webkitglib-symbols.map:

Tools:

* TestWebKitAPI/Tests/WebKitCocoa/ResourceLoadStatistics.mm:
(TEST):
* TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:
* TestWebKitAPI/Tests/WebKitCocoa/WebProcessKillIDBCleanup.mm:
(TEST):
* TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm:
(TEST):
* WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
* WebKitTestRunner/InjectedBundle/TestRunner.cpp:
(WTR::TestRunner::terminateStorageProcess): Deleted.
* WebKitTestRunner/InjectedBundle/TestRunner.h:
* WebKitTestRunner/TestController.cpp:
(WTR::TestController::generatePageConfiguration):
(WTR::TestController::databaseProcessName): Deleted.
(WTR::TestController::databaseProcessDidCrash): Deleted.
(WTR::TestController::terminateStorageProcess): Deleted.
* WebKitTestRunner/TestController.h:
* WebKitTestRunner/TestInvocation.cpp:
(WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):

LayoutTests:

Since Service Worker management is in netowrk process now, we should terminate network
process instead of storage process.

* http/wpt/service-workers/persistent-importScripts.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236690 268f45cc-cd09-0410-ab3c-d52691b4dbfc
80 files changed:
LayoutTests/ChangeLog
LayoutTests/http/wpt/service-workers/persistent-importScripts.html
Source/WebCore/ChangeLog
Source/WebCore/English.lproj/Localizable.strings
Source/WebKit/CMakeLists.txt
Source/WebKit/ChangeLog
Source/WebKit/Configurations/Storage-OSX-sandbox.entitlements [deleted file]
Source/WebKit/Configurations/StorageService.xcconfig [deleted file]
Source/WebKit/Configurations/WebKit.xcconfig
Source/WebKit/DerivedSources.make
Source/WebKit/NetworkProcess/IndexedDB/WebIDBConnectionToClient.cpp
Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.cpp
Source/WebKit/PlatformGTK.cmake
Source/WebKit/PlatformMac.cmake
Source/WebKit/PlatformWPE.cmake
Source/WebKit/PlatformWin.cmake
Source/WebKit/Shared/ProcessExecutablePath.h
Source/WebKit/Shared/Storage/StorageProcessCreationParameters.cpp [deleted file]
Source/WebKit/Shared/Storage/StorageProcessCreationParameters.h [deleted file]
Source/WebKit/Shared/glib/ProcessExecutablePathGLib.cpp
Source/WebKit/Sources.txt
Source/WebKit/SourcesCocoa.txt
Source/WebKit/SourcesGTK.txt
Source/WebKit/SourcesWPE.txt
Source/WebKit/StorageProcess/EntryPoint/mac/XPCService/StorageService/Info.plist [deleted file]
Source/WebKit/StorageProcess/EntryPoint/mac/XPCService/StorageServiceEntryPoint.mm [deleted file]
Source/WebKit/StorageProcess/EntryPoint/unix/StorageProcessMain.cpp [deleted file]
Source/WebKit/StorageProcess/EntryPoint/win/StorageProcessMain.cpp [deleted file]
Source/WebKit/StorageProcess/StorageProcess.cpp [deleted file]
Source/WebKit/StorageProcess/StorageProcess.h [deleted file]
Source/WebKit/StorageProcess/StorageProcess.messages.in [deleted file]
Source/WebKit/StorageProcess/StorageToWebProcessConnection.cpp [deleted file]
Source/WebKit/StorageProcess/StorageToWebProcessConnection.h [deleted file]
Source/WebKit/StorageProcess/StorageToWebProcessConnection.messages.in [deleted file]
Source/WebKit/StorageProcess/glib/StorageProcessMainGLib.cpp [deleted file]
Source/WebKit/StorageProcess/ios/StorageProcessIOS.mm [deleted file]
Source/WebKit/StorageProcess/mac/StorageProcessMac.mm [deleted file]
Source/WebKit/StorageProcess/mac/com.apple.WebKit.Storage.sb.in [deleted file]
Source/WebKit/StorageProcess/unix/StorageProcessMainUnix.h [deleted file]
Source/WebKit/StorageProcess/win/StorageProcessMainWin.cpp [deleted file]
Source/WebKit/StorageProcess/win/StorageProcessMainWin.h [deleted file]
Source/WebKit/UIProcess/API/C/WKContext.cpp
Source/WebKit/UIProcess/API/C/WKContext.h
Source/WebKit/UIProcess/API/C/WKContextPrivate.h
Source/WebKit/UIProcess/API/Cocoa/WKProcessPool.mm
Source/WebKit/UIProcess/API/Cocoa/WKProcessPoolPrivate.h
Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp
Source/WebKit/UIProcess/Launcher/win/ProcessLauncherWin.cpp
Source/WebKit/UIProcess/Storage/StorageProcessProxy.cpp [deleted file]
Source/WebKit/UIProcess/Storage/StorageProcessProxy.h [deleted file]
Source/WebKit/UIProcess/Storage/StorageProcessProxy.messages.in [deleted file]
Source/WebKit/UIProcess/WebContextClient.cpp
Source/WebKit/UIProcess/WebContextClient.h
Source/WebKit/UIProcess/WebContextSupplement.h
Source/WebKit/UIProcess/WebProcessPool.cpp
Source/WebKit/UIProcess/WebProcessPool.h
Source/WebKit/UIProcess/WebProcessProxy.cpp
Source/WebKit/UIProcess/WebProcessProxy.h
Source/WebKit/UIProcess/WebProcessProxy.messages.in
Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp
Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.h
Source/WebKit/WebKit.xcodeproj/project.pbxproj
Source/WebKit/WebProcess/Databases/IndexedDB/WebIDBConnectionToServer.h
Source/WebKit/WebProcess/Storage/WebServiceWorkerProvider.cpp
Source/WebKit/WebProcess/Storage/WebToStorageProcessConnection.cpp [deleted file]
Source/WebKit/WebProcess/Storage/WebToStorageProcessConnection.h [deleted file]
Source/WebKit/WebProcess/WebProcess.cpp
Source/WebKit/WebProcess/WebProcess.h
Source/WebKit/webkitglib-symbols.map
Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebKitCocoa/ResourceLoadStatistics.mm
Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm
Tools/TestWebKitAPI/Tests/WebKitCocoa/WebProcessKillIDBCleanup.mm
Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm
Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl
Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp
Tools/WebKitTestRunner/InjectedBundle/TestRunner.h
Tools/WebKitTestRunner/TestController.cpp
Tools/WebKitTestRunner/TestController.h
Tools/WebKitTestRunner/TestInvocation.cpp