Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2185)

Unified Diff: content/renderer/renderer_webstoragenamespace_impl.cc

Issue 10201010: Switch chrome and chromiumDRT over to using the new WebKit API for dispatching events. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/renderer_webstoragenamespace_impl.h ('k') | webkit/dom_storage/dom_storage_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_webstoragenamespace_impl.cc
===================================================================
--- content/renderer/renderer_webstoragenamespace_impl.cc (revision 133749)
+++ content/renderer/renderer_webstoragenamespace_impl.cc (working copy)
@@ -27,10 +27,6 @@
WebStorageArea* RendererWebStorageNamespaceImpl::createStorageArea(
const WebString& origin) {
- // Ideally, we'd keep a hash map of origin to these objects. Unfortunately
- // this doesn't seem practical because there's no good way to ref-count these
- // objects, and it'd be unclear who owned them. So, instead, we'll pay the
- // price in terms of wasted memory.
return new RendererWebStorageAreaImpl(namespace_id_, origin);
}
@@ -42,6 +38,9 @@
return NULL;
}
-void RendererWebStorageNamespaceImpl::close() {
- // TOOD(michaeln): remove this deprecated method.
+bool RendererWebStorageNamespaceImpl::isSameNamespace(
+ const WebStorageNamespace& other) const {
+ const RendererWebStorageNamespaceImpl* other_impl =
+ static_cast<const RendererWebStorageNamespaceImpl*>(&other);
+ return namespace_id_ == other_impl->namespace_id_;
}
« no previous file with comments | « content/renderer/renderer_webstoragenamespace_impl.h ('k') | webkit/dom_storage/dom_storage_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698