WebCore: Adding a way to get the set of all open database handles pointing
authordumi@chromium.org <dumi@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Feb 2010 21:20:01 +0000 (21:20 +0000)
committerdumi@chromium.org <dumi@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Feb 2010 21:20:01 +0000 (21:20 +0000)
commitfb441dfb1f8834fcf3e7658723eb9415e2357dab
tree70373ad14c2d68bd57f3f3d6b31651bc9d6d4d81
parent2e315f2ec721b92fe7d4d29da3fafad7aaf85de6
WebCore: Adding a way to get the set of all open database handles pointing
to a given database.
https://bugs.webkit.org/show_bug.cgi?id=34619

Reviewed by Jeremy Orlow.

Sometimes we need to be able to close all handles to a database as
soon as possible (to delete the DB file, for example).

* storage/DatabaseTracker.cpp:
(WebCore::DatabaseTracker::getOpenDatabases):
* storage/DatabaseTracker.h:
* storage/chromium/DatabaseTrackerChromium.cpp:
(WebCore::DatabaseTracker::addOpenDatabase):
(WebCore::DatabaseTracker::removeOpenDatabase):
(WebCore::DatabaseTracker::getOpenDatabases):

WebKit/chromium: Adding a way to close all database handles pointing to a certain
database as soon as possible.
https://bugs.webkit.org/show_bug.cgi?id=34619

Reviewed by Jeremy Orlow.

* public/WebDatabase.h:
* src/WebDatabase.cpp:
(WebKit::WebDatabase::closeDatabaseImmediately):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@54506 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/storage/DatabaseTracker.cpp
WebCore/storage/DatabaseTracker.h
WebCore/storage/chromium/DatabaseTrackerChromium.cpp
WebKit/chromium/ChangeLog
WebKit/chromium/public/WebDatabase.h
WebKit/chromium/src/WebDatabase.cpp