Elim cr-checkbox
[chromium-blink-merge.git] / extensions / shell / browser / shell_special_storage_policy.cc
blobd43c71bfdd786986958a68e26f4346c77cc604fa
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"
7 namespace extensions {
9 ShellSpecialStoragePolicy::ShellSpecialStoragePolicy() {
12 ShellSpecialStoragePolicy::~ShellSpecialStoragePolicy() {
15 bool ShellSpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
16 return true;
19 bool ShellSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
20 return true;
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.
26 return false;
29 bool ShellSpecialStoragePolicy::IsStorageSessionOnly(const GURL& origin) {
30 return false;
33 bool ShellSpecialStoragePolicy::CanQueryDiskSize(const GURL& origin) {
34 return true;
37 bool ShellSpecialStoragePolicy::HasSessionOnlyOrigins() {
38 return false;
41 bool ShellSpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) {
42 return false;
45 } // namespace extensions