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

Side by Side Diff: content/common/cache_storage/cache_storage_types.h

Issue 1636613002: [CacheStorage] Check quota before put operations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set quota per origin and fix order of operations error Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_COMMON_CACHE_STORAGE_CACHE_STORAGE_TYPES_H_ 5 #ifndef CONTENT_COMMON_CACHE_STORAGE_CACHE_STORAGE_TYPES_H_
6 #define CONTENT_COMMON_CACHE_STORAGE_CACHE_STORAGE_TYPES_H_ 6 #define CONTENT_COMMON_CACHE_STORAGE_CACHE_STORAGE_TYPES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 CacheStorageCacheQueryParams match_params; 46 CacheStorageCacheQueryParams match_params;
47 }; 47 };
48 48
49 // This enum is used in histograms, so do not change the ordering and always 49 // This enum is used in histograms, so do not change the ordering and always
50 // append new types to the end. 50 // append new types to the end.
51 enum CacheStorageError { 51 enum CacheStorageError {
52 CACHE_STORAGE_OK = 0, 52 CACHE_STORAGE_OK = 0,
53 CACHE_STORAGE_ERROR_EXISTS, 53 CACHE_STORAGE_ERROR_EXISTS,
54 CACHE_STORAGE_ERROR_STORAGE, 54 CACHE_STORAGE_ERROR_STORAGE,
55 CACHE_STORAGE_ERROR_NOT_FOUND, 55 CACHE_STORAGE_ERROR_NOT_FOUND,
56 CACHE_STORAGE_ERROR_LAST = CACHE_STORAGE_ERROR_NOT_FOUND 56 CACHE_STORAGE_ERROR_QUOTA_EXCEEDED,
57 CACHE_STORAGE_ERROR_LAST = CACHE_STORAGE_ERROR_QUOTA_EXCEEDED
57 }; 58 };
58 59
59 } // namespace content 60 } // namespace content
60 61
61 #endif // CONTENT_COMMON_CACHE_STORAGE_CACHE_STORAGE_TYPES_H_ 62 #endif // CONTENT_COMMON_CACHE_STORAGE_CACHE_STORAGE_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698