2009-07-11 Jeremy Orlow <jorlow@chromium.org>
authorbfulgham@webkit.org <bfulgham@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Jul 2009 19:36:50 +0000 (19:36 +0000)
committerbfulgham@webkit.org <bfulgham@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Jul 2009 19:36:50 +0000 (19:36 +0000)
commitabe134c0cc3b2f7dc82d6ae58a7c6992dffccd0d
treedc083950640e1ad7a782919b887af2128550b96e
parentbdd655647a48a8a9baa3238196be5c7c4739519e
2009-07-11  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Darin Adler.

        Cleanup DOM Storage dependencies.
        https://bugs.webkit.org/show_bug.cgi?id=27180

        DOM Storage had several unnecessary (and probably unintended)
        dependencies.  This patch replaces many includes of header files with
        forward declaration of classes, making some destructors explicit, and
        taking some factories out of the header files.

        This will allow things like StorageAreaSync to take a StorageAreaImpl*
        (as it should) rather than a StorageArea* which previously weren't
        possible because the dependencies were such a tangled mess.

        * storage/LocalStorageTask.cpp:
        (WebCore::LocalStorageTask::~LocalStorageTask):
        * storage/LocalStorageTask.h:
        * storage/Storage.cpp:
        (WebCore::Storage::~Storage):
        * storage/Storage.h:
        * storage/StorageArea.cpp:
        * storage/StorageArea.h:
        * storage/StorageAreaImpl.cpp:
        * storage/StorageAreaImpl.h:
        * storage/StorageAreaSync.cpp:
        (WebCore::StorageAreaSync::~StorageAreaSync):
        * storage/StorageAreaSync.h:
        * storage/StorageEvent.cpp:
        (WebCore::StorageEvent::create):
        (WebCore::StorageEvent::StorageEvent):
        * storage/StorageEvent.h:
        * storage/StorageNamespace.h:
        * storage/StorageNamespaceImpl.cpp:
        * storage/StorageNamespaceImpl.h:
        * storage/StorageSyncManager.cpp:
        (WebCore::StorageSyncManager::~StorageSyncManager):
        * storage/StorageSyncManager.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@45864 268f45cc-cd09-0410-ab3c-d52691b4dbfc
18 files changed:
WebCore/ChangeLog
WebCore/storage/LocalStorageTask.cpp
WebCore/storage/LocalStorageTask.h
WebCore/storage/Storage.cpp
WebCore/storage/Storage.h
WebCore/storage/StorageArea.cpp
WebCore/storage/StorageArea.h
WebCore/storage/StorageAreaImpl.cpp
WebCore/storage/StorageAreaImpl.h
WebCore/storage/StorageAreaSync.cpp
WebCore/storage/StorageAreaSync.h
WebCore/storage/StorageEvent.cpp
WebCore/storage/StorageEvent.h
WebCore/storage/StorageNamespace.h
WebCore/storage/StorageNamespaceImpl.cpp
WebCore/storage/StorageNamespaceImpl.h
WebCore/storage/StorageSyncManager.cpp
WebCore/storage/StorageSyncManager.h