summaryrefslogtreecommitdiffstats
path: root/components/html_viewer/web_storage_namespace_impl.h
blob: 1c199aa22cbf05fe8271b1a4f9a8c25389f5493b (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
// Copyright 2014 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 COMPONENTS_HTML_VIEWER_WEB_STORAGE_NAMESPACE_IMPL_H_
#define COMPONENTS_HTML_VIEWER_WEB_STORAGE_NAMESPACE_IMPL_H_

#include "base/macros.h"
#include "third_party/WebKit/public/platform/WebStorageNamespace.h"

namespace html_viewer {

class WebStorageNamespaceImpl : public blink::WebStorageNamespace {
 public:
  WebStorageNamespaceImpl();

 private:
  virtual ~WebStorageNamespaceImpl();

  // blink::WebStorageNamespace methods:
  virtual blink::WebStorageArea* createStorageArea(
      const blink::WebString& origin);
  virtual bool isSameNamespace(const blink::WebStorageNamespace&) const;

  DISALLOW_COPY_AND_ASSIGN(WebStorageNamespaceImpl);
};

}  // namespace html_viewer

#endif  // COMPONENTS_HTML_VIEWER_WEB_STORAGE_NAMESPACE_IMPL_H_