Consolidate all the one time initialization functions into a single InitializeWebKit2...
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Jan 2013 02:51:30 +0000 (02:51 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Jan 2013 02:51:30 +0000 (02:51 +0000)
commit1b4fc312ef3b5006cebf2793461f685e704ff855
treeb6a4aea4134b525686862739f7b2041aadbe0b7d
parent2f40fa17c82147cd9fdd440226a79219bee24289
Consolidate all the one time initialization functions into a single InitializeWebKit2() super function
https://bugs.webkit.org/show_bug.cgi?id=106161

Reviewed by Simon Fraser.

Adds InitializeWebKit2 and uses it.

* CMakeLists.txt:
* GNUmakefile.list.am:
* NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::initializeNetworkProcess):
* NetworkProcess/mac/NetworkProcessInitialization.mm:
(WebKit::initializeNetworkProcess):
* PluginProcess/mac/PluginProcessMainMac.mm:
(WebKit::PluginProcessMain):
* Shared/WebKit2Initialize.cpp: Copied from Source/WebKit2/NetworkProcess/mac/NetworkProcessInitialization.mm.
(WebKit::InitializeWebKit2):
* Shared/WebKit2Initialize.h: Copied from Source/WebKit2/NetworkProcess/mac/NetworkProcessInitialization.mm.
(WebKit):
* SharedWorkerProcess/mac/SharedWorkerProcessMainMac.mm:
(WebKit::SharedWorkerProcessMain):
* Target.pri:
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::WebProcess):
* WebProcess/mac/WebProcessInitialization.mm:
(WebKit::initializeWebProcess):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@138881 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
Source/WebKit2/CMakeLists.txt
Source/WebKit2/ChangeLog
Source/WebKit2/GNUmakefile.list.am
Source/WebKit2/NetworkProcess/NetworkProcess.cpp
Source/WebKit2/NetworkProcess/mac/NetworkProcessInitialization.mm
Source/WebKit2/PluginProcess/mac/PluginProcessMainMac.mm
Source/WebKit2/Shared/WebKit2Initialize.cpp [new file with mode: 0644]
Source/WebKit2/Shared/WebKit2Initialize.h [new file with mode: 0644]
Source/WebKit2/SharedWorkerProcess/mac/SharedWorkerProcessMainMac.mm
Source/WebKit2/Target.pri
Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
Source/WebKit2/WebProcess/WebProcess.cpp
Source/WebKit2/WebProcess/mac/WebProcessInitialization.mm