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

Side by Side Diff: chrome/browser/in_process_webkit/storage_namespace.h

Issue 255050: Quota support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_STORAGE_NAMESPACE_H_ 5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_STORAGE_NAMESPACE_H_
6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_STORAGE_NAMESPACE_H_ 6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_STORAGE_NAMESPACE_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "chrome/common/dom_storage_type.h" 10 #include "chrome/common/dom_storage_type.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // The WebKit storage namespace we manage. 49 // The WebKit storage namespace we manage.
50 WebKit::WebStorageNamespace* storage_namespace_; 50 WebKit::WebStorageNamespace* storage_namespace_;
51 51
52 // Our id. Unique to our parent WebKitContext class. 52 // Our id. Unique to our parent WebKitContext class.
53 int64 id_; 53 int64 id_;
54 54
55 // SessionStorage vs. LocalStorage. 55 // SessionStorage vs. LocalStorage.
56 const DOMStorageType storage_type_; 56 const DOMStorageType storage_type_;
57 57
58 // The quota for each storage area. Suggested by the spec.
59 static const unsigned kLocalStorageQuota = 5 * 1024 * 1024;
60
58 DISALLOW_IMPLICIT_CONSTRUCTORS(StorageNamespace); 61 DISALLOW_IMPLICIT_CONSTRUCTORS(StorageNamespace);
59 }; 62 };
60 63
61 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_STORAGE_NAMESPACE_H_ 64 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_STORAGE_NAMESPACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/in_process_webkit/dom_storage_dispatcher_host.cc ('k') | chrome/browser/in_process_webkit/storage_namespace.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698