summaryrefslogtreecommitdiffstats
path: root/chrome/browser/in_process_webkit
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-10 13:12:49 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-10 13:12:49 +0000
commite721ebe885b159f9b18047392be9a0f5834998fb (patch)
tree9a885282fee88e4645a68c1a9b4eaeda0736886e /chrome/browser/in_process_webkit
parentf4954a7b55b98530fe831660dd8fd90bcf0c5658 (diff)
downloadchromium_src-e721ebe885b159f9b18047392be9a0f5834998fb.zip
chromium_src-e721ebe885b159f9b18047392be9a0f5834998fb.tar.gz
chromium_src-e721ebe885b159f9b18047392be9a0f5834998fb.tar.bz2
Add a session storage node to the cookies tree view for collected cookies.
Furthermore, local storage and session storage accesses are recorded separately in the tab contents, so they can be displayed in the correct bucket. BUG=45230 TEST=none Review URL: http://codereview.chromium.org/3053052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55563 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/in_process_webkit')
-rw-r--r--chrome/browser/in_process_webkit/dom_storage_area.h2
-rw-r--r--chrome/browser/in_process_webkit/dom_storage_dispatcher_host.cc3
2 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/in_process_webkit/dom_storage_area.h b/chrome/browser/in_process_webkit/dom_storage_area.h
index 0a85b05..66a763a 100644
--- a/chrome/browser/in_process_webkit/dom_storage_area.h
+++ b/chrome/browser/in_process_webkit/dom_storage_area.h
@@ -47,6 +47,8 @@ class DOMStorageArea {
int64 id() const { return id_; }
+ DOMStorageNamespace* owner() const { return owner_; }
+
private:
// Creates the underlying WebStorageArea on demand.
void CreateWebStorageAreaIfNecessary();
diff --git a/chrome/browser/in_process_webkit/dom_storage_dispatcher_host.cc b/chrome/browser/in_process_webkit/dom_storage_dispatcher_host.cc
index 0da3274..0bd53ac 100644
--- a/chrome/browser/in_process_webkit/dom_storage_dispatcher_host.cc
+++ b/chrome/browser/in_process_webkit/dom_storage_dispatcher_host.cc
@@ -269,7 +269,8 @@ void DOMStorageDispatcherHost::OnSetItem(
CallRenderViewHostContentSettingsDelegate(
process_id_, reply_msg->routing_id(),
&RenderViewHostDelegate::ContentSettings::OnLocalStorageAccessed,
- url, result == WebStorageArea::ResultBlockedByPolicy);
+ url, storage_area->owner()->dom_storage_type(),
+ result == WebStorageArea::ResultBlockedByPolicy);
}
ViewHostMsg_DOMStorageSetItem::WriteReplyParams(reply_msg, result, old_value);