Move LegacyProcess entry points into new EntryPoint directories
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 26 Jan 2013 19:44:01 +0000 (19:44 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 26 Jan 2013 19:44:01 +0000 (19:44 +0000)
commit3ece777f0cad1a708d8bf0bcdd447d9349a0fcc1
tree5dac7342a23c429176d52ae9dbbc0408eea2bc03
parent0a4b38aa28de1a0ebaaf38b2f342c4a18d68b7ca
Move LegacyProcess entry points into new EntryPoint directories
https://bugs.webkit.org/show_bug.cgi?id=108008

Reviewed by Anders Carlsson.

Also refactors to remove the need for the overly general WebKitMain, by putting the
framework lazy loading into a helper function each legacy process can call (in ChildProcessMainBootstrapper.h)

* Configurations/NetworkProcess.xcconfig:
* Configurations/PluginProcess.xcconfig:
* Configurations/SharedWorkerProcess.xcconfig:
* Configurations/WebProcess.xcconfig:
* NetworkProcess/EntryPoint: Added.
* NetworkProcess/EntryPoint/mac: Added.
* NetworkProcess/EntryPoint/mac/LegacyProcess: Added.
* NetworkProcess/EntryPoint/mac/LegacyProcess/Info.plist: Copied from Source/WebKit2/NetworkProcess/Info.plist.
* NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMain.mm: Copied from Source/WebKit2/NetworkProcess/mac/NetworkProcessMainMac.mm.
(NetworkProcessMain):
* NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMainBootstrapper.cpp: Added.
(main):
* NetworkProcess/Info.plist: Removed.
* NetworkProcess/NetworkProcessMain.h: Removed.
* NetworkProcess/mac/NetworkProcessMainMac.mm: Removed.
* PluginProcess/EntryPoint: Added.
* PluginProcess/EntryPoint/mac: Added.
* PluginProcess/EntryPoint/mac/LegacyProcess: Added.
* PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist: Copied from Source/WebKit2/PluginProcess/Info.plist.
* PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm: Copied from Source/WebKit2/PluginProcess/mac/PluginProcessMainMac.mm.
(PluginProcessMain):
* PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMainBootstrapper.cpp: Added.
(main):
* PluginProcess/Info.plist: Removed.
* PluginProcess/PluginProcessMain.h: Removed.
* PluginProcess/mac/PluginProcessMainMac.mm: Removed.
* Shared/EntryPointUtilities: Added.
* Shared/EntryPointUtilities/mac: Added.
* Shared/EntryPointUtilities/mac/LegacyProcess: Added.
* Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.h: Copied from Source/WebKit2/Shared/mac/ChildProcessMain.h.
* Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.mm: Copied from Source/WebKit2/Shared/mac/ChildProcessMain.mm.
* Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMainBootstrapper.h: Added.
(closeUnusedFileDescriptors):
(getBootstrapMainFunction):
* Shared/EntryPointUtilities/mac/XPCService: Added.
* Shared/mac/ChildProcessMain.h: Removed.
* Shared/mac/ChildProcessMain.mm: Removed.
* SharedWorkerProcess/EntryPoint: Added.
* SharedWorkerProcess/EntryPoint/mac: Added.
* SharedWorkerProcess/EntryPoint/mac/LegacyProcess: Added.
* SharedWorkerProcess/EntryPoint/mac/LegacyProcess/Info.plist: Copied from Source/WebKit2/SharedWorkerProcess/Info.plist.
* SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMain.mm: Copied from Source/WebKit2/SharedWorkerProcess/mac/SharedWorkerProcessMainMac.mm.
(SharedWorkerProcessMain):
* SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMainBootstrapper.cpp: Added.
(main):
* SharedWorkerProcess/Info.plist: Removed.
* SharedWorkerProcess/SharedWorkerProcessMain.h: Removed.
* SharedWorkerProcess/mac/SharedWorkerProcessMainMac.mm: Removed.
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/EntryPoint/mac/LegacyProcess/Info.plist: Copied from Source/WebKit2/WebProcess/Info.plist.
* WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm: Copied from Source/WebKit2/WebProcess/mac/WebProcessMainMac.mm.
(WebKit::WebContentProcessMainDelegate::WebContentProcessMainDelegate):
(WebKit):
(WebContentProcessMain):
* WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMainBootstrapper.cpp: Added.
(main):
* WebProcess/Info.plist: Removed.
* WebProcess/WebKitMain.cpp: Removed.
* WebProcess/WebProcessMain.h: Removed.
* WebProcess/mac/WebProcessMainMac.mm: Removed.
* mac/MainMacProcess.cpp: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140914 268f45cc-cd09-0410-ab3c-d52691b4dbfc
22 files changed:
Source/WebKit2/ChangeLog
Source/WebKit2/Configurations/NetworkProcess.xcconfig
Source/WebKit2/Configurations/PluginProcess.xcconfig
Source/WebKit2/Configurations/SharedWorkerProcess.xcconfig
Source/WebKit2/Configurations/WebProcess.xcconfig
Source/WebKit2/NetworkProcess/EntryPoint/mac/LegacyProcess/Info.plist [moved from Source/WebKit2/NetworkProcess/Info.plist with 100% similarity]
Source/WebKit2/NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMain.mm [moved from Source/WebKit2/NetworkProcess/mac/NetworkProcessMainMac.mm with 86% similarity]
Source/WebKit2/NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMainBootstrapper.cpp [moved from Source/WebKit2/SharedWorkerProcess/SharedWorkerProcessMain.h with 82% similarity]
Source/WebKit2/PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist [moved from Source/WebKit2/PluginProcess/Info.plist with 100% similarity]
Source/WebKit2/PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm [moved from Source/WebKit2/PluginProcess/mac/PluginProcessMainMac.mm with 93% similarity]
Source/WebKit2/PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMainBootstrapper.cpp [moved from Source/WebKit2/WebProcess/WebProcessMain.h with 83% similarity]
Source/WebKit2/Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.h [moved from Source/WebKit2/Shared/mac/ChildProcessMain.h with 100% similarity]
Source/WebKit2/Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.mm [moved from Source/WebKit2/Shared/mac/ChildProcessMain.mm with 100% similarity]
Source/WebKit2/Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMainBootstrapper.h [moved from Source/WebKit2/mac/MainMacProcess.cpp with 78% similarity]
Source/WebKit2/SharedWorkerProcess/EntryPoint/mac/LegacyProcess/Info.plist [moved from Source/WebKit2/SharedWorkerProcess/Info.plist with 100% similarity]
Source/WebKit2/SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMain.mm [moved from Source/WebKit2/SharedWorkerProcess/mac/SharedWorkerProcessMainMac.mm with 82% similarity]
Source/WebKit2/SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMainBootstrapper.cpp [moved from Source/WebKit2/PluginProcess/PluginProcessMain.h with 80% similarity]
Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
Source/WebKit2/WebProcess/EntryPoint/mac/LegacyProcess/Info.plist [moved from Source/WebKit2/WebProcess/Info.plist with 100% similarity]
Source/WebKit2/WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm [moved from Source/WebKit2/WebProcess/mac/WebProcessMainMac.mm with 93% similarity]
Source/WebKit2/WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMainBootstrapper.cpp [moved from Source/WebKit2/NetworkProcess/NetworkProcessMain.h with 80% similarity]
Source/WebKit2/WebProcess/WebKitMain.cpp [deleted file]