Roll src/third_party/WebKit f298044:aa8346d (svn 202628:202629)
[chromium-blink-merge.git] / chrome / browser / extensions / mock_extension_special_storage_policy.cc
blobd4d609bf34216433727acdb3bf02ab926043bfc2
1 // Copyright (c) 2012 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.
5 #include "chrome/browser/extensions/mock_extension_special_storage_policy.h"
7 MockExtensionSpecialStoragePolicy::MockExtensionSpecialStoragePolicy()
8 : ExtensionSpecialStoragePolicy(NULL) {}
10 bool MockExtensionSpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
11 return protected_.find(origin) != protected_.end();
14 bool MockExtensionSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
15 return false;
18 bool MockExtensionSpecialStoragePolicy::IsStorageSessionOnly(
19 const GURL& origin) {
20 return false;
23 bool MockExtensionSpecialStoragePolicy::CanQueryDiskSize(const GURL& origin) {
24 return false;
27 bool MockExtensionSpecialStoragePolicy::HasSessionOnlyOrigins() {
28 return false;
31 MockExtensionSpecialStoragePolicy::~MockExtensionSpecialStoragePolicy() {}