Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Side by Side Diff: mojo/services/html_viewer/webstoragenamespace_impl.cc

Issue 1037363002: Remove unnecessary 'virtual' annotation from mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolved merge conflicts Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/services/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 html_viewer { 11 namespace html_viewer {
12 namespace { 12 namespace {
13 13
14 class DummyWebStorageAreaImpl : public blink::WebStorageArea { 14 class DummyWebStorageAreaImpl : public blink::WebStorageArea {
15 public: 15 public:
16 virtual unsigned length() { 16 unsigned length() override { return 0; }
17 return 0; 17 blink::WebString key(unsigned index) override { return blink::WebString(); }
18 } 18 blink::WebString getItem(const blink::WebString& key) override {
19 virtual blink::WebString key(unsigned index) {
20 return blink::WebString();
21 }
22 virtual blink::WebString getItem(const blink::WebString& key) {
23 return blink::WebString(); 19 return blink::WebString();
24 } 20 }
25 }; 21 };
26 22
27 } // namespace 23 } // namespace
28 24
29 WebStorageNamespaceImpl::WebStorageNamespaceImpl() { 25 WebStorageNamespaceImpl::WebStorageNamespaceImpl() {
30 } 26 }
31 27
32 WebStorageNamespaceImpl::~WebStorageNamespaceImpl() { 28 WebStorageNamespaceImpl::~WebStorageNamespaceImpl() {
33 } 29 }
34 30
35 blink::WebStorageArea* WebStorageNamespaceImpl::createStorageArea( 31 blink::WebStorageArea* WebStorageNamespaceImpl::createStorageArea(
36 const blink::WebString& origin) { 32 const blink::WebString& origin) {
37 return new DummyWebStorageAreaImpl(); 33 return new DummyWebStorageAreaImpl();
38 } 34 }
39 35
40 bool WebStorageNamespaceImpl::isSameNamespace( 36 bool WebStorageNamespaceImpl::isSameNamespace(
41 const blink::WebStorageNamespace&) const { 37 const blink::WebStorageNamespace&) const {
42 return false; 38 return false;
43 } 39 }
44 40
45 } // namespace html_viewer 41 } // namespace html_viewer
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/webstoragenamespace_impl.h ('k') | mojo/services/html_viewer/webthemeengine_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698