diff options
author | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-24 00:22:52 +0000 |
---|---|---|
committer | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-24 00:22:52 +0000 |
commit | 0bdcc45f1f5a7895f506394ba80e7b2cea2105a4 (patch) | |
tree | b260aa44444d608fe39ba4a43c8baf84bea209b3 /webkit/dom_storage/dom_storage_host.cc | |
parent | 206249b1ba6a490871ed72eeac9493c39678b105 (diff) | |
download | chromium_src-0bdcc45f1f5a7895f506394ba80e7b2cea2105a4.zip chromium_src-0bdcc45f1f5a7895f506394ba80e7b2cea2105a4.tar.gz chromium_src-0bdcc45f1f5a7895f506394ba80e7b2cea2105a4.tar.bz2 |
DomStorage async IPC message definitions and browser-side handlers. These messages aren't called yet by the renderer-side.
Review URL: https://chromiumcodereview.appspot.com/10160003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133576 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/dom_storage/dom_storage_host.cc')
-rw-r--r-- | webkit/dom_storage/dom_storage_host.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/webkit/dom_storage/dom_storage_host.cc b/webkit/dom_storage/dom_storage_host.cc index 2e4ee56..1b468c8 100644 --- a/webkit/dom_storage/dom_storage_host.cc +++ b/webkit/dom_storage/dom_storage_host.cc @@ -47,6 +47,16 @@ void DomStorageHost::CloseStorageArea(int connection_id) { connections_.erase(found); } +bool DomStorageHost::ExtractAreaValues( + int connection_id, ValuesMap* map) { + map->clear(); + AreaMap::iterator found = connections_.find(connection_id); + if (found == connections_.end()) + return false; // Indicates the renderer gave us very bad data. + found->second.area_->ExtractValues(map); + return true; +} + unsigned DomStorageHost::GetAreaLength(int connection_id) { DomStorageArea* area = GetOpenArea(connection_id); if (!area) |