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
) {
18 bool MockExtensionSpecialStoragePolicy::IsStorageSessionOnly(
23 bool MockExtensionSpecialStoragePolicy::CanQueryDiskSize(const GURL
& origin
) {
27 bool MockExtensionSpecialStoragePolicy::IsFileHandler(
28 const std::string
& extension_id
) {
32 bool MockExtensionSpecialStoragePolicy::HasSessionOnlyOrigins() {
36 MockExtensionSpecialStoragePolicy::~MockExtensionSpecialStoragePolicy() {}