WebKit2: Need to set the location of the Databases directory when the WebProcess...
authorjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Dec 2010 17:27:10 +0000 (17:27 +0000)
committerjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Dec 2010 17:27:10 +0000 (17:27 +0000)
commit84f7c1006a8506486ee52e2b7ec63cc8e1a03f65
tree459aa347c4fbf02e5dae523c7bc2db2844f43532
parenta1a237cfc932c58afe503b2400a7dc0ac0ea8b2b
WebKit2: Need to set the location of the Databases directory when the WebProcess is initialized
https://bugs.webkit.org/show_bug.cgi?id=50604

Reviewed by Darin Adler.

* WebProcess/WebCoreSupport/WebDatabaseManager.cpp: Added.
(WebKit::WebDatabaseManager::shared):
(WebKit::WebDatabaseManager::WebDatabaseManager):
Initialize the DatabaseTracker with the Database directory.
* WebProcess/WebCoreSupport/WebDatabaseManager.h: Added.
* WebProcess/WebCoreSupport/mac/WebDatabaseManagerMac.mm: Added.
(WebKit::WebDatabaseManager::databaseDirectory):
Copied from WebKitInitializeDatabasesIfNecessary in WebKit/mac/Storage/WebDatabaseManager.mm.
* WebProcess/WebCoreSupport/win/WebDatabaseManagerWin.cpp: Added.
(WebKit::WebDatabaseManager::databaseDirectory):
Copied from WebKitInitializeWebDatabasesIfNecessary in WebKit/win/WebDatabaseManager.cpp.

* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::WebProcess):
Make sure that the Databases directory has been set by calling WebDatabaseManager::shared().

* WebKit2.xcodeproj/project.pbxproj:
Add WebDatabaseManager.cpp/.h/Mac.cpp
* win/WebKit2.vcproj:
Add WebDatabaseManager.cpp/.h/Win.cpp

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@73449 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit2/ChangeLog
WebKit2/WebKit2.xcodeproj/project.pbxproj
WebKit2/WebProcess/WebCoreSupport/WebDatabaseManager.cpp [new file with mode: 0644]
WebKit2/WebProcess/WebCoreSupport/WebDatabaseManager.h [new file with mode: 0644]
WebKit2/WebProcess/WebCoreSupport/mac/WebDatabaseManagerMac.mm [new file with mode: 0644]
WebKit2/WebProcess/WebCoreSupport/win/WebDatabaseManagerWin.cpp [new file with mode: 0644]
WebKit2/WebProcess/WebProcess.cpp
WebKit2/win/WebKit2.vcproj