OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_ |
6 #define CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_ | 6 #define CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "content/public/browser/session_storage_namespace.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 | 13 |
17 class DOMStorageContextImpl; | 14 class DOMStorageContextImpl; |
18 | 15 |
19 namespace dom_storage { | 16 namespace dom_storage { |
20 class DomStorageSession; | 17 class DomStorageSession; |
21 } | 18 } |
22 | 19 |
23 class SessionStorageNamespaceImpl | 20 class SessionStorageNamespaceImpl |
24 : NON_EXPORTED_BASE(public content::SessionStorageNamespace) { | 21 : NON_EXPORTED_BASE(public content::SessionStorageNamespace) { |
25 public: | 22 public: |
26 explicit SessionStorageNamespaceImpl(DOMStorageContextImpl* context); | 23 explicit SessionStorageNamespaceImpl(DOMStorageContextImpl* context); |
27 int64 id() const; | 24 int64 id() const; |
28 SessionStorageNamespaceImpl* Clone(); | 25 SessionStorageNamespaceImpl* Clone(); |
29 | 26 |
30 private: | 27 private: |
31 explicit SessionStorageNamespaceImpl(dom_storage::DomStorageSession* clone); | 28 explicit SessionStorageNamespaceImpl(dom_storage::DomStorageSession* clone); |
32 virtual ~SessionStorageNamespaceImpl(); | 29 virtual ~SessionStorageNamespaceImpl(); |
33 | 30 |
34 scoped_refptr<dom_storage::DomStorageSession> session_; | 31 scoped_refptr<dom_storage::DomStorageSession> session_; |
35 | 32 |
36 DISALLOW_COPY_AND_ASSIGN(SessionStorageNamespaceImpl); | 33 DISALLOW_COPY_AND_ASSIGN(SessionStorageNamespaceImpl); |
37 }; | 34 }; |
38 | 35 |
39 #endif // ENABLE_NEW_DOM_STORAGE_BACKEND | |
40 #endif // CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_ | 36 #endif // CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_ |
OLD | NEW |