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_RENDERER_DOM_STORAGE_WEBSTORAGENAMESPACE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGENAMESPACE_IMPL_H_ |
6 #define CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGENAMESPACE_IMPL_H_ | 6 #define CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGENAMESPACE_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h
" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h
" |
10 | 10 |
| 11 namespace content { |
| 12 |
11 class WebStorageNamespaceImpl : public WebKit::WebStorageNamespace { | 13 class WebStorageNamespaceImpl : public WebKit::WebStorageNamespace { |
12 public: | 14 public: |
13 // The default constructor creates a local storage namespace, the second | 15 // The default constructor creates a local storage namespace, the second |
14 // constructor should be used for session storage namepaces. | 16 // constructor should be used for session storage namepaces. |
15 WebStorageNamespaceImpl(); | 17 WebStorageNamespaceImpl(); |
16 explicit WebStorageNamespaceImpl(int64 namespace_id); | 18 explicit WebStorageNamespaceImpl(int64 namespace_id); |
17 virtual ~WebStorageNamespaceImpl(); | 19 virtual ~WebStorageNamespaceImpl(); |
18 | 20 |
19 // See WebStorageNamespace.h for documentation on these functions. | 21 // See WebStorageNamespace.h for documentation on these functions. |
20 virtual WebKit::WebStorageArea* createStorageArea( | 22 virtual WebKit::WebStorageArea* createStorageArea( |
21 const WebKit::WebString& origin); | 23 const WebKit::WebString& origin); |
22 virtual WebKit::WebStorageNamespace* copy(); | 24 virtual WebKit::WebStorageNamespace* copy(); |
23 virtual bool isSameNamespace(const WebStorageNamespace&) const; | 25 virtual bool isSameNamespace(const WebStorageNamespace&) const; |
24 | 26 |
25 private: | 27 private: |
26 int64 namespace_id_; | 28 int64 namespace_id_; |
27 }; | 29 }; |
28 | 30 |
| 31 } // namespace content |
| 32 |
29 #endif // CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGENAMESPACE_IMPL_H_ | 33 #endif // CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGENAMESPACE_IMPL_H_ |
OLD | NEW |