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 #ifndef CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_ | |
6 #define CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_ | |
7 #pragma once | |
8 | |
9 #include "base/basictypes.h" | |
10 #include "base/memory/ref_counted.h" | |
11 #include "content/common/content_export.h" | |
12 #include "content/public/browser/session_storage_namespace.h" | |
13 #include "webkit/dom_storage/dom_storage_types.h" // Temporary | |
14 | |
15 #ifdef ENABLE_NEW_DOM_STORAGE_BACKEND | |
16 | |
17 class DOMStorageContextImpl; | |
18 | |
19 namespace dom_storage { | |
20 class DomStorageSession; | |
21 } | |
22 | |
23 class SessionStorageNamespaceImpl | |
24 : NON_EXPORTED_BASE(public content::SessionStorageNamespace) { | |
25 public: | |
26 explicit SessionStorageNamespaceImpl(DOMStorageContextImpl* context); | |
27 int64 id() const; | |
28 SessionStorageNamespaceImpl* Clone(); | |
29 | |
30 private: | |
31 explicit SessionStorageNamespaceImpl(dom_storage::DomStorageSession* clone); | |
32 virtual ~SessionStorageNamespaceImpl(); | |
33 | |
34 scoped_refptr<dom_storage::DomStorageSession> session_; | |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(SessionStorageNamespaceImpl); | |
37 }; | |
38 | |
39 #endif // ENABLE_NEW_DOM_STORAGE_BACKEND | |
40 #endif // CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_ | |
OLD | NEW |