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

Unified Diff: chrome/renderer/renderer_webstoragenamespace_impl.cc

Issue 223013: Another stab at the Chromium side of storage events. The WebKit side can be ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « chrome/renderer/render_thread.cc ('k') | webkit/api/public/WebKitClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_webstoragenamespace_impl.cc
===================================================================
--- chrome/renderer/renderer_webstoragenamespace_impl.cc (revision 27652)
+++ chrome/renderer/renderer_webstoragenamespace_impl.cc (working copy)
@@ -8,6 +8,10 @@
#include "chrome/renderer/render_thread.h"
#include "chrome/renderer/renderer_webstoragearea_impl.h"
+using WebKit::WebStorageArea;
+using WebKit::WebStorageNamespace;
+using WebKit::WebString;
+
RendererWebStorageNamespaceImpl::RendererWebStorageNamespaceImpl(
DOMStorageType storage_type)
: storage_type_(storage_type),
@@ -24,8 +28,8 @@
RendererWebStorageNamespaceImpl::~RendererWebStorageNamespaceImpl() {
}
-WebKit::WebStorageArea* RendererWebStorageNamespaceImpl::createStorageArea(
- const WebKit::WebString& origin) {
+WebStorageArea* RendererWebStorageNamespaceImpl::createStorageArea(
+ const WebString& origin) {
// This could be done async in the background (started when this class is
// first instantiated) rather than lazily on first use, but it's unclear
// whether it's worth the complexity.
@@ -42,12 +46,12 @@
return new RendererWebStorageAreaImpl(namespace_id_, origin);
}
-WebKit::WebStorageNamespace* RendererWebStorageNamespaceImpl::copy() {
+WebStorageNamespace* RendererWebStorageNamespaceImpl::copy() {
// If we haven't been used yet, we might as well start out fresh (and lazy).
if (namespace_id_ == kUninitializedNamespaceId)
return new RendererWebStorageNamespaceImpl(storage_type_);
- // This cannot easily be differed because we need a snapshot in time.
+ // This cannot easily be deferred because we need a snapshot in time.
int64 new_namespace_id;
RenderThread::current()->Send(
new ViewHostMsg_DOMStorageCloneNamespaceId(namespace_id_,
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | webkit/api/public/WebKitClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698