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

Side by Side Diff: content/browser/dom_storage/session_storage_namespace_impl_new.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/browser/dom_storage/session_storage_namespace_impl_new.h"
6
7 #ifdef ENABLE_NEW_DOM_STORAGE_BACKEND
8
9 #include "content/browser/dom_storage/dom_storage_context_impl_new.h"
10 #include "webkit/dom_storage/dom_storage_session.h"
11
12 using dom_storage::DomStorageSession;
13
14 SessionStorageNamespaceImpl::SessionStorageNamespaceImpl(
15 DOMStorageContextImpl* context)
16 : session_(new DomStorageSession(context->context())) {
17 }
18
19 int64 SessionStorageNamespaceImpl::id() const {
20 return session_->namespace_id();
21 }
22
23 SessionStorageNamespaceImpl* SessionStorageNamespaceImpl::Clone() {
24 return new SessionStorageNamespaceImpl(session_->Clone());
25 }
26
27 SessionStorageNamespaceImpl::SessionStorageNamespaceImpl(
28 DomStorageSession* clone)
29 : session_(clone) {
30 }
31
32 SessionStorageNamespaceImpl::~SessionStorageNamespaceImpl() {
33 }
34
35 #endif // ENABLE_NEW_DOM_STORAGE_BACKEND
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698