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

Unified Diff: content/common/cache_storage/cache_storage_types.h

Issue 1132683003: CacheStorage: Merge CacheStorage::CacheStorageError and CacheStorageCache::ErrorType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix more Created 5 years, 7 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/cache_storage/cache_storage_manager_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/cache_storage/cache_storage_types.h
diff --git a/content/common/cache_storage/cache_storage_types.h b/content/common/cache_storage/cache_storage_types.h
index 26ac5e0fdeb46378a831aabcbb3114c0cd76b835..b52d5176df70a3a13d096b21579380aec7898104 100644
--- a/content/common/cache_storage/cache_storage_types.h
+++ b/content/common/cache_storage/cache_storage_types.h
@@ -47,6 +47,16 @@ struct CONTENT_EXPORT CacheStorageBatchOperation {
CacheStorageCacheQueryParams match_params;
};
+// This enum is used in histograms, so do not change the ordering and always
+// append new types to the end.
+enum CacheStorageError {
+ CACHE_STORAGE_OK = 0,
+ CACHE_STORAGE_ERROR_EXISTS,
+ CACHE_STORAGE_ERROR_STORAGE,
+ CACHE_STORAGE_ERROR_NOT_FOUND,
+ CACHE_STORAGE_ERROR_LAST = CACHE_STORAGE_ERROR_NOT_FOUND
+};
+
} // namespace content
#endif // CONTENT_COMMON_CACHE_STORAGE_CACHE_STORAGE_TYPES_H_
« no previous file with comments | « content/browser/cache_storage/cache_storage_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698