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

Side by Side Diff: components/html_viewer/web_storage_namespace_impl.cc

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 10 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
(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
OLDNEW
« no previous file with comments | « components/html_viewer/web_storage_namespace_impl.h ('k') | components/html_viewer/web_test_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698