| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "extensions/shell/browser/shell_special_storage_policy.h" | 5 #include "extensions/shell/browser/shell_special_storage_policy.h" |
| 6 | 6 |
| 7 namespace extensions { | 7 namespace extensions { |
| 8 | 8 |
| 9 ShellSpecialStoragePolicy::ShellSpecialStoragePolicy() { | 9 ShellSpecialStoragePolicy::ShellSpecialStoragePolicy() { |
| 10 } | 10 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 bool ShellSpecialStoragePolicy::IsStorageDurable(const GURL& origin) { | 23 bool ShellSpecialStoragePolicy::IsStorageDurable(const GURL& origin) { |
| 24 // The plan is to forbid extensions from acquiring the durable storage | 24 // The plan is to forbid extensions from acquiring the durable storage |
| 25 // permission because they can specify 'unlimitedStorage' in the manifest. | 25 // permission because they can specify 'unlimitedStorage' in the manifest. |
| 26 return false; | 26 return false; |
| 27 } | 27 } |
| 28 | 28 |
| 29 bool ShellSpecialStoragePolicy::IsStorageSessionOnly(const GURL& origin) { | 29 bool ShellSpecialStoragePolicy::IsStorageSessionOnly(const GURL& origin) { |
| 30 return false; | 30 return false; |
| 31 } | 31 } |
| 32 | 32 |
| 33 bool ShellSpecialStoragePolicy::CanQueryDiskSize(const GURL& origin) { |
| 34 return true; |
| 35 } |
| 36 |
| 33 bool ShellSpecialStoragePolicy::HasSessionOnlyOrigins() { | 37 bool ShellSpecialStoragePolicy::HasSessionOnlyOrigins() { |
| 34 return false; | 38 return false; |
| 35 } | 39 } |
| 36 | 40 |
| 37 bool ShellSpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) { | 41 bool ShellSpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) { |
| 38 return false; | 42 return false; |
| 39 } | 43 } |
| 40 | 44 |
| 41 } // namespace extensions | 45 } // namespace extensions |
| OLD | NEW |