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

Side by Side Diff: content/common/dom_storage/dom_storage_types.h

Issue 1953703004: Purge browser cache for dom storage in a smarter way (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dom_storage
Patch Set: Fix limit and description for UMA. Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_DOM_STORAGE_DOM_STORAGE_TYPES_H_ 5 #ifndef CONTENT_COMMON_DOM_STORAGE_DOM_STORAGE_TYPES_H_
6 #define CONTENT_COMMON_DOM_STORAGE_DOM_STORAGE_TYPES_H_ 6 #define CONTENT_COMMON_DOM_STORAGE_DOM_STORAGE_TYPES_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 17 matching lines...) Expand all
28 // that were allowed because the limit imposed in the renderer 28 // that were allowed because the limit imposed in the renderer
29 // wasn't exceeded. 29 // wasn't exceeded.
30 const size_t kPerStorageAreaOverQuotaAllowance = 100 * 1024; 30 const size_t kPerStorageAreaOverQuotaAllowance = 100 * 1024;
31 31
32 // Value to indicate the localstorage namespace vs non-zero 32 // Value to indicate the localstorage namespace vs non-zero
33 // values for sessionstorage namespaces. 33 // values for sessionstorage namespaces.
34 const int64_t kLocalStorageNamespaceId = 0; 34 const int64_t kLocalStorageNamespaceId = 0;
35 35
36 const int64_t kInvalidSessionStorageNamespaceId = kLocalStorageNamespaceId; 36 const int64_t kInvalidSessionStorageNamespaceId = kLocalStorageNamespaceId;
37 37
38 // Start purging memory if the number of in-memory areas exceeds this.
39 const int64_t kMaxInMemoryStorageAreas = 100;
40
41 } // namespace content 38 } // namespace content
42 39
43 #endif // CONTENT_COMMON_DOM_STORAGE_DOM_STORAGE_TYPES_H_ 40 #endif // CONTENT_COMMON_DOM_STORAGE_DOM_STORAGE_TYPES_H_
OLDNEW
« no previous file with comments | « content/browser/dom_storage/dom_storage_namespace.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698