OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
6 #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 6 #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 virtual PlatformNotificationContext* GetPlatformNotificationContext() = 0; | 76 virtual PlatformNotificationContext* GetPlatformNotificationContext() = 0; |
77 | 77 |
78 enum : uint32_t { | 78 enum : uint32_t { |
79 REMOVE_DATA_MASK_APPCACHE = 1 << 0, | 79 REMOVE_DATA_MASK_APPCACHE = 1 << 0, |
80 REMOVE_DATA_MASK_COOKIES = 1 << 1, | 80 REMOVE_DATA_MASK_COOKIES = 1 << 1, |
81 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2, | 81 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2, |
82 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3, | 82 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3, |
83 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4, | 83 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4, |
84 REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5, | 84 REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5, |
85 REMOVE_DATA_MASK_WEBSQL = 1 << 6, | 85 REMOVE_DATA_MASK_WEBSQL = 1 << 6, |
86 REMOVE_DATA_MASK_WEBRTC_IDENTITY = 1 << 7, | 86 REMOVE_DATA_MASK_SERVICE_WORKERS = 1 << 7, |
87 REMOVE_DATA_MASK_SERVICE_WORKERS = 1 << 8, | 87 REMOVE_DATA_MASK_CACHE_STORAGE = 1 << 8, |
88 REMOVE_DATA_MASK_CACHE_STORAGE = 1 << 9, | |
89 REMOVE_DATA_MASK_ALL = 0xFFFFFFFF, | 88 REMOVE_DATA_MASK_ALL = 0xFFFFFFFF, |
90 | 89 |
91 // Corresponds to storage::kStorageTypeTemporary. | 90 // Corresponds to storage::kStorageTypeTemporary. |
92 QUOTA_MANAGED_STORAGE_MASK_TEMPORARY = 1 << 0, | 91 QUOTA_MANAGED_STORAGE_MASK_TEMPORARY = 1 << 0, |
93 // Corresponds to storage::kStorageTypePersistent. | 92 // Corresponds to storage::kStorageTypePersistent. |
94 QUOTA_MANAGED_STORAGE_MASK_PERSISTENT = 1 << 1, | 93 QUOTA_MANAGED_STORAGE_MASK_PERSISTENT = 1 << 1, |
95 // Corresponds to storage::kStorageTypeSyncable. | 94 // Corresponds to storage::kStorageTypeSyncable. |
96 QUOTA_MANAGED_STORAGE_MASK_SYNCABLE = 1 << 2, | 95 QUOTA_MANAGED_STORAGE_MASK_SYNCABLE = 1 << 2, |
97 QUOTA_MANAGED_STORAGE_MASK_ALL = 0xFFFFFFFF, | 96 QUOTA_MANAGED_STORAGE_MASK_ALL = 0xFFFFFFFF, |
98 }; | 97 }; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // unwritten data has been written out to the filesystem. | 165 // unwritten data has been written out to the filesystem. |
167 virtual void Flush() = 0; | 166 virtual void Flush() = 0; |
168 | 167 |
169 protected: | 168 protected: |
170 virtual ~StoragePartition() {} | 169 virtual ~StoragePartition() {} |
171 }; | 170 }; |
172 | 171 |
173 } // namespace content | 172 } // namespace content |
174 | 173 |
175 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 174 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
OLD | NEW |