OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_COMMON_DOM_STORAGE_DOM_STORAGE_TYPES_H_ | 5 #ifndef WEBKIT_COMMON_DOM_STORAGE_DOM_STORAGE_TYPES_H_ |
6 #define WEBKIT_COMMON_DOM_STORAGE_DOM_STORAGE_TYPES_H_ | 6 #define WEBKIT_COMMON_DOM_STORAGE_DOM_STORAGE_TYPES_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/strings/nullable_string16.h" | 11 #include "base/strings/nullable_string16.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
15 #include "webkit/common/webkit_storage_common_export.h" | 15 #include "webkit/common/webkit_storage_common_export.h" |
16 | 16 |
17 namespace dom_storage { | 17 namespace dom_storage { |
18 | 18 |
19 // The quota for each storage area. Suggested by the spec. | 19 // The quota for each storage area. |
20 // This value is enforced in renderer processes. | 20 // This value is enforced in renderer processes. |
ericu
2013/08/02 03:46:22
Isn't it also enforced in the browser? If so, cou
michaeln
2013/08/02 19:15:17
done
| |
21 const size_t kPerAreaQuota = 5 * 1024 * 1024; | 21 const size_t kPerAreaQuota = 10 * 1024 * 1024; |
22 | 22 |
23 // In the browser process we allow some overage to | 23 // In the browser process we allow some overage to |
24 // accomodate concurrent writes from different renderers | 24 // accomodate concurrent writes from different renderers |
25 // that were allowed because the limit imposed in the renderer | 25 // that were allowed because the limit imposed in the renderer |
26 // wasn't exceeded. | 26 // wasn't exceeded. |
27 const size_t kPerAreaOverQuotaAllowance = 100 * 1024; | 27 const size_t kPerAreaOverQuotaAllowance = 100 * 1024; |
28 | 28 |
29 // Value to indicate the localstorage namespace vs non-zero | 29 // Value to indicate the localstorage namespace vs non-zero |
30 // values for sessionstorage namespaces. | 30 // values for sessionstorage namespaces. |
31 const int64 kLocalStorageNamespaceId = 0; | 31 const int64 kLocalStorageNamespaceId = 0; |
(...skipping 21 matching lines...) Expand all Loading... | |
53 GURL origin; | 53 GURL origin; |
54 std::string persistent_namespace_id; | 54 std::string persistent_namespace_id; |
55 | 55 |
56 SessionStorageUsageInfo(); | 56 SessionStorageUsageInfo(); |
57 ~SessionStorageUsageInfo(); | 57 ~SessionStorageUsageInfo(); |
58 }; | 58 }; |
59 | 59 |
60 } // namespace dom_storage | 60 } // namespace dom_storage |
61 | 61 |
62 #endif // WEBKIT_COMMON_DOM_STORAGE_DOM_STORAGE_TYPES_H_ | 62 #endif // WEBKIT_COMMON_DOM_STORAGE_DOM_STORAGE_TYPES_H_ |
OLD | NEW |