| 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 #ifndef MOJO_EXAMPLES_HTML_VIEWER_WEBSTORAGENAMESPACE_IMPL_H_ | 5 #ifndef MOJO_SERVICES_HTML_VIEWER_WEBSTORAGENAMESPACE_IMPL_H_ |
| 6 #define MOJO_EXAMPLES_HTML_VIEWER_WEBSTORAGENAMESPACE_IMPL_H_ | 6 #define MOJO_SERVICES_HTML_VIEWER_WEBSTORAGENAMESPACE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "third_party/WebKit/public/platform/WebStorageNamespace.h" | 9 #include "third_party/WebKit/public/platform/WebStorageNamespace.h" |
| 10 | 10 |
| 11 namespace mojo { | 11 namespace mojo { |
| 12 namespace examples { | |
| 13 | 12 |
| 14 class WebStorageNamespaceImpl : public blink::WebStorageNamespace { | 13 class WebStorageNamespaceImpl : public blink::WebStorageNamespace { |
| 15 public: | 14 public: |
| 16 WebStorageNamespaceImpl(); | 15 WebStorageNamespaceImpl(); |
| 17 | 16 |
| 18 private: | 17 private: |
| 19 virtual ~WebStorageNamespaceImpl(); | 18 virtual ~WebStorageNamespaceImpl(); |
| 20 | 19 |
| 21 // blink::WebStorageNamespace methods: | 20 // blink::WebStorageNamespace methods: |
| 22 virtual blink::WebStorageArea* createStorageArea( | 21 virtual blink::WebStorageArea* createStorageArea( |
| 23 const blink::WebString& origin); | 22 const blink::WebString& origin); |
| 24 virtual bool isSameNamespace(const blink::WebStorageNamespace&) const; | 23 virtual bool isSameNamespace(const blink::WebStorageNamespace&) const; |
| 25 | 24 |
| 26 DISALLOW_COPY_AND_ASSIGN(WebStorageNamespaceImpl); | 25 DISALLOW_COPY_AND_ASSIGN(WebStorageNamespaceImpl); |
| 27 }; | 26 }; |
| 28 | 27 |
| 29 } // namespace examples | |
| 30 } // namespace mojo | 28 } // namespace mojo |
| 31 | 29 |
| 32 #endif // MOJO_EXAMPLES_HTML_VIEWER_WEBSTORAGENAMESPACE_IMPL_H_ | 30 #endif // MOJO_SERVICES_HTML_VIEWER_WEBSTORAGENAMESPACE_IMPL_H_ |
| OLD | NEW |