OLD | NEW |
| (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 | |
OLD | NEW |