Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1622)

Unified Diff: content/public/browser/storage_partition.h

Issue 1291623002: Remove STATIC_CONST_MEMBER_DEFINITION. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/storage_partition.h
diff --git a/content/public/browser/storage_partition.h b/content/public/browser/storage_partition.h
index dd5a78984e70dd68f7620603e76319b7a1a811f2..9adfd67a8be424bde9c456ce7e36a5555a0bbc04 100644
--- a/content/public/browser/storage_partition.h
+++ b/content/public/browser/storage_partition.h
@@ -77,24 +77,26 @@ class CONTENT_EXPORT StoragePartition {
virtual PlatformNotificationContext* GetPlatformNotificationContext() = 0;
virtual BackgroundSyncContext* GetBackgroundSyncContext() = 0;
- static const uint32 REMOVE_DATA_MASK_APPCACHE = 1 << 0;
- static const uint32 REMOVE_DATA_MASK_COOKIES = 1 << 1;
- static const uint32 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2;
- static const uint32 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3;
- static const uint32 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4;
- static const uint32 REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5;
- static const uint32 REMOVE_DATA_MASK_WEBSQL = 1 << 6;
- static const uint32 REMOVE_DATA_MASK_WEBRTC_IDENTITY = 1 << 7;
- static const uint32 REMOVE_DATA_MASK_SERVICE_WORKERS = 1 << 8;
- static const uint32 REMOVE_DATA_MASK_ALL = 0xFFFFFFFF;
-
- // Corresponds to storage::kStorageTypeTemporary.
- static const uint32 QUOTA_MANAGED_STORAGE_MASK_TEMPORARY = 1 << 0;
- // Corresponds to storage::kStorageTypePersistent.
- static const uint32 QUOTA_MANAGED_STORAGE_MASK_PERSISTENT = 1 << 1;
- // Corresponds to storage::kStorageTypeSyncable.
- static const uint32 QUOTA_MANAGED_STORAGE_MASK_SYNCABLE = 1 << 2;
- static const uint32 QUOTA_MANAGED_STORAGE_MASK_ALL = 0xFFFFFFFF;
+ enum : uint32 {
+ REMOVE_DATA_MASK_APPCACHE = 1 << 0,
+ REMOVE_DATA_MASK_COOKIES = 1 << 1,
+ REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2,
+ REMOVE_DATA_MASK_INDEXEDDB = 1 << 3,
+ REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4,
+ REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5,
+ REMOVE_DATA_MASK_WEBSQL = 1 << 6,
+ REMOVE_DATA_MASK_WEBRTC_IDENTITY = 1 << 7,
+ REMOVE_DATA_MASK_SERVICE_WORKERS = 1 << 8,
+ REMOVE_DATA_MASK_ALL = 0xFFFFFFFF,
+
+ // Corresponds to storage::kStorageTypeTemporary.
+ QUOTA_MANAGED_STORAGE_MASK_TEMPORARY = 1 << 0,
+ // Corresponds to storage::kStorageTypePersistent.
+ QUOTA_MANAGED_STORAGE_MASK_PERSISTENT = 1 << 1,
+ // Corresponds to storage::kStorageTypeSyncable.
+ QUOTA_MANAGED_STORAGE_MASK_SYNCABLE = 1 << 2,
+ QUOTA_MANAGED_STORAGE_MASK_ALL = 0xFFFFFFFF,
+ };
// Starts an asynchronous task that does a best-effort clear the data
// corresponding to the given |remove_mask| and |quota_storage_remove_mask|
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698