summaryrefslogtreecommitdiffstats
path: root/chrome/browser/in_process_webkit/storage_namespace.h
diff options
context:
space:
mode:
authorjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-03 06:51:15 +0000
committerjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-03 06:51:15 +0000
commit75c91e64b82abaa843d9327f7b57cc9a0abe1696 (patch)
tree28e9093690edc475c7a7d69b21a90facef3d2641 /chrome/browser/in_process_webkit/storage_namespace.h
parent8922e1ff7ac33a3f88079e1e6d3ae8671602a952 (diff)
downloadchromium_src-75c91e64b82abaa843d9327f7b57cc9a0abe1696.zip
chromium_src-75c91e64b82abaa843d9327f7b57cc9a0abe1696.tar.gz
chromium_src-75c91e64b82abaa843d9327f7b57cc9a0abe1696.tar.bz2
Add quota support.
Add a 5mb quota to DOM Storage. Most of the details are in an upstream patch (https://bugs.webkit.org/show_bug.cgi?id=29991 ). BUG=16876 TEST=I added a layout test upstream and it works. Review URL: http://codereview.chromium.org/255050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27942 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/in_process_webkit/storage_namespace.h')
-rw-r--r--chrome/browser/in_process_webkit/storage_namespace.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/in_process_webkit/storage_namespace.h b/chrome/browser/in_process_webkit/storage_namespace.h
index 91e0ae6..712dd41 100644
--- a/chrome/browser/in_process_webkit/storage_namespace.h
+++ b/chrome/browser/in_process_webkit/storage_namespace.h
@@ -55,6 +55,9 @@ class StorageNamespace {
// SessionStorage vs. LocalStorage.
const DOMStorageType storage_type_;
+ // The quota for each storage area. Suggested by the spec.
+ static const unsigned kLocalStorageQuota = 5 * 1024 * 1024;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(StorageNamespace);
};