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

Unified Diff: webkit/dom_storage/dom_storage_area.cc

Issue 10383123: Switch to using the async DomStorage IPC messages and add a caching layer … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | webkit/dom_storage/dom_storage_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/dom_storage/dom_storage_area.cc
===================================================================
--- webkit/dom_storage/dom_storage_area.cc (revision 139572)
+++ webkit/dom_storage/dom_storage_area.cc (working copy)
@@ -58,7 +58,7 @@
: namespace_id_(namespace_id), origin_(origin),
directory_(directory),
task_runner_(task_runner),
- map_(new DomStorageMap(kPerAreaQuota)),
+ map_(new DomStorageMap(kPerAreaQuota + kPerAreaOverQuotaAllowance)),
is_initial_import_done_(true),
is_shutdown_(false),
commit_batches_in_flight_(0) {
@@ -137,7 +137,7 @@
if (map_->Length() == 0)
return false;
- map_ = new DomStorageMap(kPerAreaQuota);
+ map_ = new DomStorageMap(kPerAreaQuota + kPerAreaOverQuotaAllowance);
if (backing_.get()) {
CommitBatch* commit_batch = CreateCommitBatchIfNeeded();
@@ -176,7 +176,7 @@
Clear();
return;
}
- map_ = new DomStorageMap(kPerAreaQuota);
+ map_ = new DomStorageMap(kPerAreaQuota + kPerAreaOverQuotaAllowance);
if (backing_.get()) {
is_initial_import_done_ = false;
backing_.reset(new DomStorageDatabase(backing_->file_path()));
@@ -195,7 +195,7 @@
// Drop the in memory cache, we'll reload when needed.
is_initial_import_done_ = false;
- map_ = new DomStorageMap(kPerAreaQuota);
+ map_ = new DomStorageMap(kPerAreaQuota + kPerAreaOverQuotaAllowance);
// Recreate the database object, this frees up the open sqlite connection
// and its page cache.
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | webkit/dom_storage/dom_storage_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698