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