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

Unified Diff: content/browser/storage_partition_impl.cc

Issue 383863002: Use STATIC_CONST_MEMBER_DEFINITION to make constant definitions clearer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « no previous file | content/public/browser/storage_partition.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/storage_partition_impl.cc
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc
index 13b36f5f6c213c57bf33b2fa8fdc2ee8d7be96d4..d1b7c06990662776ecab94eb14e44ef16dfe41e3 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -192,19 +192,32 @@ void ClearSessionStorageOnUIThread(
} // namespace
// static
-const uint32 StoragePartition::REMOVE_DATA_MASK_APPCACHE = 1 << 0;
-const uint32 StoragePartition::REMOVE_DATA_MASK_COOKIES = 1 << 1;
-const uint32 StoragePartition::REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2;
-const uint32 StoragePartition::REMOVE_DATA_MASK_INDEXEDDB = 1 << 3;
-const uint32 StoragePartition::REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4;
-const uint32 StoragePartition::REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5;
-const uint32 StoragePartition::REMOVE_DATA_MASK_WEBSQL = 1 << 6;
-const uint32 StoragePartition::REMOVE_DATA_MASK_WEBRTC_IDENTITY = 1 << 7;
-const uint32 StoragePartition::REMOVE_DATA_MASK_ALL = 0xFFFFFFFF;
-const uint32 StoragePartition::QUOTA_MANAGED_STORAGE_MASK_TEMPORARY = 1 << 0;
-const uint32 StoragePartition::QUOTA_MANAGED_STORAGE_MASK_PERSISTENT = 1 << 1;
-const uint32 StoragePartition::QUOTA_MANAGED_STORAGE_MASK_SYNCABLE = 1 << 2;
-const uint32 StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL = 0xFFFFFFFF;
+STATIC_CONST_MEMBER_DEFINITION const uint32
+ StoragePartition::REMOVE_DATA_MASK_APPCACHE;
+STATIC_CONST_MEMBER_DEFINITION const uint32
+ StoragePartition::REMOVE_DATA_MASK_COOKIES;
+STATIC_CONST_MEMBER_DEFINITION const uint32
+ StoragePartition::REMOVE_DATA_MASK_FILE_SYSTEMS;
+STATIC_CONST_MEMBER_DEFINITION const uint32
+ StoragePartition::REMOVE_DATA_MASK_INDEXEDDB;
+STATIC_CONST_MEMBER_DEFINITION const uint32
+ StoragePartition::REMOVE_DATA_MASK_LOCAL_STORAGE;
+STATIC_CONST_MEMBER_DEFINITION const uint32
+ StoragePartition::REMOVE_DATA_MASK_SHADER_CACHE;
+STATIC_CONST_MEMBER_DEFINITION const uint32
+ StoragePartition::REMOVE_DATA_MASK_WEBSQL;
+STATIC_CONST_MEMBER_DEFINITION const uint32
+ StoragePartition::REMOVE_DATA_MASK_WEBRTC_IDENTITY;
+STATIC_CONST_MEMBER_DEFINITION const uint32
+ StoragePartition::REMOVE_DATA_MASK_ALL;
+STATIC_CONST_MEMBER_DEFINITION const uint32
+ StoragePartition::QUOTA_MANAGED_STORAGE_MASK_TEMPORARY;
+STATIC_CONST_MEMBER_DEFINITION const uint32
+ StoragePartition::QUOTA_MANAGED_STORAGE_MASK_PERSISTENT;
+STATIC_CONST_MEMBER_DEFINITION const uint32
+ StoragePartition::QUOTA_MANAGED_STORAGE_MASK_SYNCABLE;
+STATIC_CONST_MEMBER_DEFINITION const uint32
+ StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL;
// Static.
int StoragePartitionImpl::GenerateQuotaClientMask(uint32 remove_mask) {
« no previous file with comments | « no previous file | content/public/browser/storage_partition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698