OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |