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

Unified Diff: content/browser/in_process_webkit/session_storage_namespace_impl.cc

Issue 10086018: More DomStorage house cleaning (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
Index: content/browser/in_process_webkit/session_storage_namespace_impl.cc
===================================================================
--- content/browser/in_process_webkit/session_storage_namespace_impl.cc (revision 132437)
+++ content/browser/in_process_webkit/session_storage_namespace_impl.cc (working copy)
@@ -1,50 +0,0 @@
-// Copyright (c) 2012 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/browser/in_process_webkit/session_storage_namespace_impl.h"
-
-#ifdef ENABLE_NEW_DOM_STORAGE_BACKEND
-// This class is replaced by a new implementation in
-// content/browser/dom_storage/session_storage_namespace_impl_new.h
-#else
-
-#include "base/bind.h"
-#include "base/logging.h"
-#include "content/browser/in_process_webkit/dom_storage_context_impl.h"
-#include "content/public/browser/browser_thread.h"
-
-using content::BrowserThread;
-
-SessionStorageNamespaceImpl::SessionStorageNamespaceImpl(
- DOMStorageContextImpl* context)
- : dom_storage_context_(context),
- id_(dom_storage_context_->AllocateSessionStorageNamespaceId()) {
-}
-
-SessionStorageNamespaceImpl::SessionStorageNamespaceImpl(
- DOMStorageContextImpl* context, int64 id)
- : dom_storage_context_(context),
- id_(id) {
- DCHECK(dom_storage_context_);
-}
-
-SessionStorageNamespaceImpl::~SessionStorageNamespaceImpl() {
- if (!BrowserThread::CurrentlyOn(BrowserThread::WEBKIT_DEPRECATED) &&
- BrowserThread::PostTask(
- BrowserThread::WEBKIT_DEPRECATED, FROM_HERE,
- base::Bind(&DOMStorageContextImpl::DeleteSessionStorageNamespace,
- dom_storage_context_, id_))) {
- return;
- }
-
- dom_storage_context_->DeleteSessionStorageNamespace(id_);
-}
-
-SessionStorageNamespaceImpl* SessionStorageNamespaceImpl::Clone() {
- return new SessionStorageNamespaceImpl(
- dom_storage_context_, dom_storage_context_->CloneSessionStorage(id_));
-}
-
-#endif // ENABLE_NEW_DOM_STORAGE_BACKEND
-

Powered by Google App Engine
This is Rietveld 408576698