1 // Copyright 2014 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 #include "mojo/services/html_viewer/webstoragenamespace_impl.h"
9 #include "third_party/WebKit/public/platform/WebStorageArea.h"
11 namespace html_viewer
{
14 class DummyWebStorageAreaImpl
: public blink::WebStorageArea
{
16 virtual unsigned length() {
19 virtual blink::WebString
key(unsigned index
) {
20 return blink::WebString();
22 virtual blink::WebString
getItem(const blink::WebString
& key
) {
23 return blink::WebString();
29 WebStorageNamespaceImpl::WebStorageNamespaceImpl() {
32 WebStorageNamespaceImpl::~WebStorageNamespaceImpl() {
35 blink::WebStorageArea
* WebStorageNamespaceImpl::createStorageArea(
36 const blink::WebString
& origin
) {
37 return new DummyWebStorageAreaImpl();
40 bool WebStorageNamespaceImpl::isSameNamespace(
41 const blink::WebStorageNamespace
&) const {
45 } // namespace html_viewer