blob: 5d0c3d2a035e81de342c769d71395523495c6ffd (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// 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.
#include "mojo/examples/html_viewer/webstoragenamespace_impl.h"
#include <stdio.h>
#include "third_party/WebKit/public/platform/WebStorageArea.h"
namespace mojo {
namespace examples {
namespace {
class DummyWebStorageAreaImpl : public blink::WebStorageArea {
public:
virtual unsigned length() {
return 0;
}
virtual blink::WebString key(unsigned index) {
return blink::WebString();
}
virtual blink::WebString getItem(const blink::WebString& key) {
return blink::WebString();
}
};
} // namespace
WebStorageNamespaceImpl::WebStorageNamespaceImpl() {
}
WebStorageNamespaceImpl::~WebStorageNamespaceImpl() {
}
blink::WebStorageArea* WebStorageNamespaceImpl::createStorageArea(
const blink::WebString& origin) {
return new DummyWebStorageAreaImpl();
}
bool WebStorageNamespaceImpl::isSameNamespace(
const blink::WebStorageNamespace&) const {
return false;
}
} // namespace examples
} // namespace mojo
|