2008-04-23 Brady Eidson <beidson@apple.com>
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Apr 2008 03:39:23 +0000 (03:39 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Apr 2008 03:39:23 +0000 (03:39 +0000)
commit0c518e1c117e12748e675d804c1641ab2332b405
treefaae0f9290e5702e4d141529031e796ae033a835
parent5676dc78692e294a40fb14c8bedbbd3f502aa129
2008-04-23  Brady Eidson  <beidson@apple.com>

        Reviewed by Jon Honeycutt

        Preparing for making LocalStorageAreas persistent.

        Since LocalStorageAreas will need to do a lot of additional work for each of the basic
        operations a Storage object supports, this patch makes the API entry points virtual so
        LocalStorageArea can override them.  The behavior for both Local and Session StorageAreas
        is unchanged with this patch, but LocalStorageArea will override them in the future.

        * storage/StorageArea.cpp: Rename the implementations to internalFoo
        (WebCore::StorageArea::internalLength):
        (WebCore::StorageArea::internalKey):
        (WebCore::StorageArea::internalGetItem):
        (WebCore::StorageArea::internalSetItem):
        (WebCore::StorageArea::internalRemoveItem):
        (WebCore::StorageArea::internalContains):

        * storage/StorageArea.h: Call internalFoo variants
        (WebCore::StorageArea::length):
        (WebCore::StorageArea::key):
        (WebCore::StorageArea::getItem):
        (WebCore::StorageArea::setItem):
        (WebCore::StorageArea::removeItem):
        (WebCore::StorageArea::contains):

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