| // Copyright 2013 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CONTENT_COMMON_DOM_STORAGE_DOM_STORAGE_TYPES_H_ |
| #define CONTENT_COMMON_DOM_STORAGE_DOM_STORAGE_TYPES_H_ |
| |
| #include <stddef.h> |
| #include <stdint.h> |
| |
| #include <map> |
| |
| #include "base/strings/nullable_string16.h" |
| #include "base/strings/string16.h" |
| #include "base/time/time.h" |
| #include "url/gurl.h" |
| |
| namespace content { |
| |
| typedef std::map<base::string16, base::NullableString16> DOMStorageValuesMap; |
| |
| // The quota for each storage area. |
| // This value is enforced in renderer processes and the browser process. |
| const size_t kPerStorageAreaQuota = 10 * 1024 * 1024; |
| |
| // In the browser process we allow some overage to |
| // accomodate concurrent writes from different renderers |
| // that were allowed because the limit imposed in the renderer |
| // wasn't exceeded. |
| const size_t kPerStorageAreaOverQuotaAllowance = 100 * 1024; |
| |
| } // namespace content |
| |
| #endif // CONTENT_COMMON_DOM_STORAGE_DOM_STORAGE_TYPES_H_ |