Make USB permissions work in the new permission message system
[chromium-blink-merge.git] / content / renderer / dom_storage / webstoragenamespace_impl.h
blob364e64803528341e16bdb6f0d5a2faab27ec2df2
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.
5 #ifndef CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGENAMESPACE_IMPL_H_
6 #define CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGENAMESPACE_IMPL_H_
8 #include "base/basictypes.h"
9 #include "third_party/WebKit/public/platform/WebStorageNamespace.h"
11 namespace content {
13 class WebStorageNamespaceImpl : public blink::WebStorageNamespace {
14 public:
15 // The default constructor creates a local storage namespace, the second
16 // constructor should be used for session storage namepaces.
17 WebStorageNamespaceImpl();
18 explicit WebStorageNamespaceImpl(int64 namespace_id);
19 virtual ~WebStorageNamespaceImpl();
21 // See WebStorageNamespace.h for documentation on these functions.
22 virtual blink::WebStorageArea* createStorageArea(
23 const blink::WebString& origin);
24 virtual blink::WebStorageNamespace* copy();
25 virtual bool isSameNamespace(const WebStorageNamespace&) const;
27 private:
28 int64 namespace_id_;
31 } // namespace content
33 #endif // CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGENAMESPACE_IMPL_H_