Commit fa23f6e5 authored by beidson@apple.com's avatar beidson@apple.com

2008-05-05 Brady Eidson <beidson@apple.com>

        Reviewed by Mitz Pettel RTL

        Preparation for upcoming work making LocalStorage persistent.

        The other half of the StorageMap::importItem() addition.

        * storage/StorageArea.cpp:
        (WebCore::StorageArea::importItem):
        * storage/StorageArea.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32900 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 06c8e74b
2008-05-05 Brady Eidson <beidson@apple.com>
Reviewed by Mitz Pettel RTL
Preparation for upcoming work making LocalStorage persistent.
The other half of the StorageMap::importItem() addition.
* storage/StorageArea.cpp:
(WebCore::StorageArea::importItem):
* storage/StorageArea.h:
2008-05-05 Brady Eidson <beidson@apple.com>
Reviewed by Mitz Pettel RTL
......@@ -117,4 +117,9 @@ bool StorageArea::internalContains(const String& key) const
return m_storageMap->contains(key);
}
void StorageArea::importItem(const String& key, const String& value)
{
m_storageMap->importItem(key, value);
}
}
......@@ -65,6 +65,9 @@ namespace WebCore {
void internalRemoveItem(const String&, Frame* sourceFrame);
void internalClear(Frame* sourceFrame);
bool internalContains(const String& key) const;
// This is meant to be called from a background thread for LocalStorageArea's background thread import procedure.
void importItem(const String& key, const String& value);
private:
virtual void itemChanged(const String& key, const String& oldValue, const String& newValue, Frame* sourceFrame) = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment