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

Unified Diff: content/renderer/renderer_webstoragenamespace_impl.cc

Issue 10162015: Pull domstorage specifics out of RenderThreadImpl into DomStorageDispatcher (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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') | no next file » | 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 136129)
+++ content/renderer/renderer_webstoragenamespace_impl.cc (working copy)
@@ -1,46 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/renderer/renderer_webstoragenamespace_impl.h"
-
-#include "base/logging.h"
-#include "content/renderer/renderer_webstoragearea_impl.h"
-#include "webkit/dom_storage/dom_storage_types.h"
-
-using WebKit::WebStorageArea;
-using WebKit::WebStorageNamespace;
-using WebKit::WebString;
-
-RendererWebStorageNamespaceImpl::RendererWebStorageNamespaceImpl()
- : namespace_id_(dom_storage::kLocalStorageNamespaceId) {
-}
-
-RendererWebStorageNamespaceImpl::RendererWebStorageNamespaceImpl(
- int64 namespace_id)
- : namespace_id_(namespace_id) {
- DCHECK_NE(dom_storage::kInvalidSessionStorageNamespaceId, namespace_id);
-}
-
-RendererWebStorageNamespaceImpl::~RendererWebStorageNamespaceImpl() {
-}
-
-WebStorageArea* RendererWebStorageNamespaceImpl::createStorageArea(
- const WebString& origin) {
- return new RendererWebStorageAreaImpl(namespace_id_, origin);
-}
-
-WebStorageNamespace* RendererWebStorageNamespaceImpl::copy() {
- // By returning NULL, we're telling WebKit to lazily fetch it the next time
- // session storage is used. In the WebViewClient::createView, we do the
- // book-keeping necessary to make it a true copy-on-write despite not doing
- // anything here, now.
- return NULL;
-}
-
-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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698