OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "mojo/examples/html_viewer/webstoragenamespace_impl.h" | 5 #include "mojo/services/html_viewer/webstoragenamespace_impl.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include "third_party/WebKit/public/platform/WebStorageArea.h" | 9 #include "third_party/WebKit/public/platform/WebStorageArea.h" |
10 | 10 |
11 namespace mojo { | 11 namespace mojo { |
12 namespace examples { | |
13 namespace { | 12 namespace { |
14 | 13 |
15 class DummyWebStorageAreaImpl : public blink::WebStorageArea { | 14 class DummyWebStorageAreaImpl : public blink::WebStorageArea { |
16 public: | 15 public: |
17 virtual unsigned length() { | 16 virtual unsigned length() { |
18 return 0; | 17 return 0; |
19 } | 18 } |
20 virtual blink::WebString key(unsigned index) { | 19 virtual blink::WebString key(unsigned index) { |
21 return blink::WebString(); | 20 return blink::WebString(); |
22 } | 21 } |
(...skipping 13 matching lines...) Expand all Loading... |
36 blink::WebStorageArea* WebStorageNamespaceImpl::createStorageArea( | 35 blink::WebStorageArea* WebStorageNamespaceImpl::createStorageArea( |
37 const blink::WebString& origin) { | 36 const blink::WebString& origin) { |
38 return new DummyWebStorageAreaImpl(); | 37 return new DummyWebStorageAreaImpl(); |
39 } | 38 } |
40 | 39 |
41 bool WebStorageNamespaceImpl::isSameNamespace( | 40 bool WebStorageNamespaceImpl::isSameNamespace( |
42 const blink::WebStorageNamespace&) const { | 41 const blink::WebStorageNamespace&) const { |
43 return false; | 42 return false; |
44 } | 43 } |
45 | 44 |
46 } // namespace examples | |
47 } // namespace mojo | 45 } // namespace mojo |
OLD | NEW |