[WK2] Add SharedWorkerProcess
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Oct 2012 16:29:44 +0000 (16:29 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Oct 2012 16:29:44 +0000 (16:29 +0000)
commit75281cb3389fc34d83ba07bade5bdc8398fed4e5
treeb338c542de72fa4ae049ada9e7e9fb647ce7cbc6
parentf2e2448b8b92e490e3ec828c41cdde4136f0c4bd
    [WK2] Add SharedWorkerProcess
        https://bugs.webkit.org/show_bug.cgi?id=99218

        Reviewed by Sam Weinig.

        Not yet functional, just some boilerplate code.

        * Configurations/SharedWorkerProcess.xcconfig: Added.

        * DerivedSources.make: Generate message dispatch for SharedWorkerProcess and
        SharedWorkerProcessProxy.

        * Platform/CoreIPC/MessageID.h: Added shared worker messages classes.

        * Scripts/webkit2/messages.py: (struct_or_class):
        SharedWorkerProcessCreationParameters is a struct.

        * Shared/SharedWorkerProcessCreationParameters.cpp: Added.
        * SharedWorkerProcess/Info.plist: Added.
        * SharedWorkerProcess/SharedWorkerProcess.cpp: Added.
        * SharedWorkerProcess/SharedWorkerProcess.h: Added.
        * SharedWorkerProcess/SharedWorkerProcess.messages.in: Added.
        * SharedWorkerProcess/SharedWorkerProcessMain.h: Added.
        * SharedWorkerProcess/mac/SharedWorkerProcessMac.mm: Added.
        * SharedWorkerProcess/mac/SharedWorkerProcessMainMac.mm: Added.
        * SharedWorkerProcess/mac/com.apple.WebKit.SharedWorkerProcess.sb: Added.
        * UIProcess/SharedWorkers/SharedWorkerProcessManager.cpp: Added.
        * UIProcess/SharedWorkers/SharedWorkerProcessManager.h: Added.
        * UIProcess/SharedWorkers/SharedWorkerProcessProxy.cpp: Added.
        * UIProcess/SharedWorkers/SharedWorkerProcessProxy.h: Added.
        * UIProcess/SharedWorkers/SharedWorkerProcessProxy.messages.in: Added.
        * WebKit2.xcodeproj/project.pbxproj:
        Added SharedWorkerProcess boilerplate, modeled after PluginProcess.

        * UIProcess/WebProcessProxy.cpp:
        * UIProcess/WebProcessProxy.h:
        * UIProcess/WebProcessProxy.messages.in:
        Added getSharedWorkerProcessConnection() message.

        * WebProcess/WebKitMain.cpp: (WebKitMain):
        * UIProcess/Launcher/ProcessLauncher.cpp:
        (WebKit::ProcessLauncher::processTypeAsString):
        (WebKit::ProcessLauncher::getProcessTypeFromString):
        * UIProcess/Launcher/ProcessLauncher.h:
        * UIProcess/Launcher/mac/ProcessLauncherMac.mm: (WebKit::createProcess):
        Added branches for SharedWorkerProcess.

        * Platform/CoreIPC/HandleMessage.h: (CoreIPC::callMemberFunction): Added a version
        for delayed reply messages with two arguments.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@131308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
29 files changed:
Source/WebKit2/ChangeLog
Source/WebKit2/Configurations/SharedWorkerProcess.xcconfig [new file with mode: 0644]
Source/WebKit2/DerivedSources.make
Source/WebKit2/Platform/CoreIPC/HandleMessage.h
Source/WebKit2/Platform/CoreIPC/MessageID.h
Source/WebKit2/Scripts/webkit2/messages.py
Source/WebKit2/Shared/SharedWorkerProcessCreationParameters.cpp [new file with mode: 0644]
Source/WebKit2/Shared/SharedWorkerProcessCreationParameters.h [new file with mode: 0644]
Source/WebKit2/SharedWorkerProcess/Info.plist [new file with mode: 0644]
Source/WebKit2/SharedWorkerProcess/SharedWorkerProcess.cpp [new file with mode: 0644]
Source/WebKit2/SharedWorkerProcess/SharedWorkerProcess.h [new file with mode: 0644]
Source/WebKit2/SharedWorkerProcess/SharedWorkerProcess.messages.in [new file with mode: 0644]
Source/WebKit2/SharedWorkerProcess/SharedWorkerProcessMain.h [new file with mode: 0644]
Source/WebKit2/SharedWorkerProcess/mac/SharedWorkerProcessMac.mm [new file with mode: 0644]
Source/WebKit2/SharedWorkerProcess/mac/SharedWorkerProcessMainMac.mm [new file with mode: 0644]
Source/WebKit2/SharedWorkerProcess/mac/com.apple.WebKit.SharedWorkerProcess.sb [new file with mode: 0644]
Source/WebKit2/UIProcess/Launcher/ProcessLauncher.cpp
Source/WebKit2/UIProcess/Launcher/ProcessLauncher.h
Source/WebKit2/UIProcess/Launcher/mac/ProcessLauncherMac.mm
Source/WebKit2/UIProcess/SharedWorkers/SharedWorkerProcessManager.cpp [new file with mode: 0644]
Source/WebKit2/UIProcess/SharedWorkers/SharedWorkerProcessManager.h [new file with mode: 0644]
Source/WebKit2/UIProcess/SharedWorkers/SharedWorkerProcessProxy.cpp [new file with mode: 0644]
Source/WebKit2/UIProcess/SharedWorkers/SharedWorkerProcessProxy.h [new file with mode: 0644]
Source/WebKit2/UIProcess/SharedWorkers/SharedWorkerProcessProxy.messages.in [new file with mode: 0644]
Source/WebKit2/UIProcess/WebProcessProxy.cpp
Source/WebKit2/UIProcess/WebProcessProxy.h
Source/WebKit2/UIProcess/WebProcessProxy.messages.in
Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
Source/WebKit2/WebProcess/WebKitMain.cpp