WebKit2: Add additional API for managing databases
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Dec 2010 21:04:45 +0000 (21:04 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Dec 2010 21:04:45 +0000 (21:04 +0000)
commit15fbc425c5846ddf94dfe3201dbc8e08ce09ca43
tree7904e09436c6ad2076f2b1511e7b23deb320d837
parent6bbabcc5d750093acc893d555705eb3ebfbf2109
WebKit2: Add additional API for managing databases
https://bugs.webkit.org/show_bug.cgi?id=51629

Reviewed by Anders Carlsson.

- Adds client for the database manager to get notifications
  of changes to databases.

* UIProcess/API/C/WKDatabaseManager.cpp:
(WKDatabaseManagerSetClient):
* UIProcess/API/C/WKDatabaseManager.h:
* UIProcess/WebDatabaseManagerProxy.cpp:
(WebKit::WebDatabaseManagerProxy::initializeClient):
(WebKit::WebDatabaseManagerProxy::didModifyOrigin):
(WebKit::WebDatabaseManagerProxy::didModifyDatabase):
* UIProcess/WebDatabaseManagerProxy.h:
* UIProcess/WebDatabaseManagerProxy.messages.in:
* UIProcess/WebDatabaseManagerProxyClient.cpp: Added.
(WebKit::WebDatabaseManagerProxyClient::didModifyOrigin):
(WebKit::WebDatabaseManagerProxyClient::didModifyDatabase):
* UIProcess/WebDatabaseManagerProxyClient.h: Added.
* WebKit2.pro:
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
(WebKit::WebDatabaseManager::WebDatabaseManager):
(WebKit::WebDatabaseManager::~WebDatabaseManager):
(WebKit::WebDatabaseManager::dispatchDidModifyOrigin):
(WebKit::WebDatabaseManager::dispatchDidModifyDatabase):
* WebProcess/WebCoreSupport/WebDatabaseManager.h:
* win/WebKit2.vcproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@74693 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
WebKit2/ChangeLog
WebKit2/UIProcess/API/C/WKDatabaseManager.cpp
WebKit2/UIProcess/API/C/WKDatabaseManager.h
WebKit2/UIProcess/WebDatabaseManagerProxy.cpp
WebKit2/UIProcess/WebDatabaseManagerProxy.h
WebKit2/UIProcess/WebDatabaseManagerProxy.messages.in
WebKit2/UIProcess/WebDatabaseManagerProxyClient.cpp [new file with mode: 0644]
WebKit2/UIProcess/WebDatabaseManagerProxyClient.h [new file with mode: 0644]
WebKit2/WebKit2.pro
WebKit2/WebKit2.xcodeproj/project.pbxproj
WebKit2/WebProcess/WebCoreSupport/WebDatabaseManager.cpp
WebKit2/WebProcess/WebCoreSupport/WebDatabaseManager.h
WebKit2/win/WebKit2.vcproj