blob: 364e64803528341e16bdb6f0d5a2faab27ec2df2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGENAMESPACE_IMPL_H_
#define CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGENAMESPACE_IMPL_H_
#include "base/basictypes.h"
#include "third_party/WebKit/public/platform/WebStorageNamespace.h"
namespace content {
class WebStorageNamespaceImpl : public blink::WebStorageNamespace {
public:
// The default constructor creates a local storage namespace, the second
// constructor should be used for session storage namepaces.
WebStorageNamespaceImpl();
explicit WebStorageNamespaceImpl(int64 namespace_id);
virtual ~WebStorageNamespaceImpl();
// See WebStorageNamespace.h for documentation on these functions.
virtual blink::WebStorageArea* createStorageArea(
const blink::WebString& origin);
virtual blink::WebStorageNamespace* copy();
virtual bool isSameNamespace(const WebStorageNamespace&) const;
private:
int64 namespace_id_;
};
} // namespace content
#endif // CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGENAMESPACE_IMPL_H_
|