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.
5 #include "extensions/shell/browser/shell_special_storage_policy.h"
9 ShellSpecialStoragePolicy::ShellSpecialStoragePolicy() {
12 ShellSpecialStoragePolicy::~ShellSpecialStoragePolicy() {
15 bool ShellSpecialStoragePolicy::IsStorageProtected(const GURL
& origin
) {
19 bool ShellSpecialStoragePolicy::IsStorageUnlimited(const GURL
& origin
) {
23 bool ShellSpecialStoragePolicy::IsStorageDurable(const GURL
& origin
) {
24 // The plan is to forbid extensions from acquiring the durable storage
25 // permission because they can specify 'unlimitedStorage' in the manifest.
29 bool ShellSpecialStoragePolicy::IsStorageSessionOnly(const GURL
& origin
) {
33 bool ShellSpecialStoragePolicy::CanQueryDiskSize(const GURL
& origin
) {
37 bool ShellSpecialStoragePolicy::HasSessionOnlyOrigins() {
41 bool ShellSpecialStoragePolicy::HasIsolatedStorage(const GURL
& origin
) {
45 } // namespace extensions