Port Android relocation packer to chromium build
[chromium-blink-merge.git] / mojo / services / html_viewer / webstoragenamespace_impl.cc
blob12a5060f3d49e3b7aeccd65de4bc60bcb6f7eafe
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"
7 #include <stdio.h>
9 #include "third_party/WebKit/public/platform/WebStorageArea.h"
11 namespace html_viewer {
12 namespace {
14 class DummyWebStorageAreaImpl : public blink::WebStorageArea {
15 public:
16 virtual unsigned length() {
17 return 0;
19 virtual blink::WebString key(unsigned index) {
20 return blink::WebString();
22 virtual blink::WebString getItem(const blink::WebString& key) {
23 return blink::WebString();
27 } // namespace
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 {
42 return false;
45 } // namespace html_viewer