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, | 88 REMOVE_DATA_MASK_PLUGIN_PRIVATE_DATA = 1 << 9, |
89 REMOVE_DATA_MASK_PLUGIN_PRIVATE_DATA = 1 << 10, | |
90 REMOVE_DATA_MASK_ALL = 0xFFFFFFFF, | 89 REMOVE_DATA_MASK_ALL = 0xFFFFFFFF, |
91 | 90 |
92 // Corresponds to storage::kStorageTypeTemporary. | 91 // Corresponds to storage::kStorageTypeTemporary. |
93 QUOTA_MANAGED_STORAGE_MASK_TEMPORARY = 1 << 0, | 92 QUOTA_MANAGED_STORAGE_MASK_TEMPORARY = 1 << 0, |
94 // Corresponds to storage::kStorageTypePersistent. | 93 // Corresponds to storage::kStorageTypePersistent. |
95 QUOTA_MANAGED_STORAGE_MASK_PERSISTENT = 1 << 1, | 94 QUOTA_MANAGED_STORAGE_MASK_PERSISTENT = 1 << 1, |
96 // Corresponds to storage::kStorageTypeSyncable. | 95 // Corresponds to storage::kStorageTypeSyncable. |
97 QUOTA_MANAGED_STORAGE_MASK_SYNCABLE = 1 << 2, | 96 QUOTA_MANAGED_STORAGE_MASK_SYNCABLE = 1 << 2, |
98 QUOTA_MANAGED_STORAGE_MASK_ALL = 0xFFFFFFFF, | 97 QUOTA_MANAGED_STORAGE_MASK_ALL = 0xFFFFFFFF, |
99 }; | 98 }; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // unwritten data has been written out to the filesystem. | 166 // unwritten data has been written out to the filesystem. |
168 virtual void Flush() = 0; | 167 virtual void Flush() = 0; |
169 | 168 |
170 protected: | 169 protected: |
171 virtual ~StoragePartition() {} | 170 virtual ~StoragePartition() {} |
172 }; | 171 }; |
173 | 172 |
174 } // namespace content | 173 } // namespace content |
175 | 174 |
176 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 175 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
OLD | NEW |