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 | |
37 bool ShellSpecialStoragePolicy::HasSessionOnlyOrigins() { | 33 bool ShellSpecialStoragePolicy::HasSessionOnlyOrigins() { |
38 return false; | 34 return false; |
39 } | 35 } |
40 | 36 |
41 bool ShellSpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) { | 37 bool ShellSpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) { |
42 return false; | 38 return false; |
43 } | 39 } |
44 | 40 |
45 } // namespace extensions | 41 } // namespace extensions |
OLD | NEW |