Move some code related to database closing from the destructor to
authordumi@chromium.org <dumi@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Dec 2009 01:27:14 +0000 (01:27 +0000)
committerdumi@chromium.org <dumi@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Dec 2009 01:27:14 +0000 (01:27 +0000)
commit022b4fc0b64423a574ea1b26f78344db32b00531
tree099981c44410ee501eae52594287aaa971ef267a
parent4be1c2a37a66cc9270157d9782070e791e8a9081
Move some code related to database closing from the destructor to
the close() method. This would allow us to do things such as post
tasks to other threads when a database closes, which cannot be
done now, because we cannot increment the ref count to a database
object when we're in its destructor.

Reviewed by Dmitry Titov.

https://bugs.webkit.org/show_bug.cgi?id=32626

* storage/Database.cpp:
(WebCore::Database::~Database):
(WebCore::Database::close):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@52367 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/storage/Database.cpp