blob: b4b522b798ccc0ade28054f3166bbf4e66e549b2 (
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
|
// 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 <stdint.h>
#include <string>
#include "third_party/blink/public/platform/web_storage_namespace.h"
namespace content {
class WebStorageNamespaceImpl : public blink::WebStorageNamespace {
public:
explicit WebStorageNamespaceImpl(const std::string& namespace_id);
~WebStorageNamespaceImpl() override;
// See WebStorageNamespace.h for documentation on these functions.
blink::WebStorageArea* CreateStorageArea(
const blink::WebSecurityOrigin& origin) override;
virtual blink::WebStorageNamespace* copy();
bool IsSameNamespace(const WebStorageNamespace&) const override;
private:
std::string namespace_id_;
};
} // namespace content
#endif // CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGENAMESPACE_IMPL_H_
|