| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #include "components/html_viewer/web_storage_namespace_impl.h" | |
| 6 | |
| 7 #include <stdio.h> | |
| 8 | |
| 9 #include "third_party/WebKit/public/platform/WebStorageArea.h" | |
| 10 | |
| 11 namespace html_viewer { | |
| 12 namespace { | |
| 13 | |
| 14 class DummyWebStorageAreaImpl : public blink::WebStorageArea { | |
| 15 public: | |
| 16 unsigned length() override { return 0; } | |
| 17 blink::WebString key(unsigned index) override { return blink::WebString(); } | |
| 18 blink::WebString getItem(const blink::WebString& key) override { | |
| 19 return blink::WebString(); | |
| 20 } | |
| 21 }; | |
| 22 | |
| 23 } // namespace | |
| 24 | |
| 25 WebStorageNamespaceImpl::WebStorageNamespaceImpl() { | |
| 26 } | |
| 27 | |
| 28 WebStorageNamespaceImpl::~WebStorageNamespaceImpl() { | |
| 29 } | |
| 30 | |
| 31 blink::WebStorageArea* WebStorageNamespaceImpl::createStorageArea( | |
| 32 const blink::WebString& origin) { | |
| 33 return new DummyWebStorageAreaImpl(); | |
| 34 } | |
| 35 | |
| 36 bool WebStorageNamespaceImpl::isSameNamespace( | |
| 37 const blink::WebStorageNamespace&) const { | |
| 38 return false; | |
| 39 } | |
| 40 | |
| 41 } // namespace html_viewer | |
| OLD | NEW |