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

Unified Diff: webkit/quota/quota_manager.cc

Issue 7002024: Implement QuotaTemporaryStorageEvictor. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Catching up the latest 7003021. Created 9 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
Index: webkit/quota/quota_manager.cc
diff --git a/webkit/quota/quota_manager.cc b/webkit/quota/quota_manager.cc
index 16b44efe2b138e9151e7e858345bd3f78439b679..3617de677c2a9f9fc702cf2593f73ef498e979b1 100644
--- a/webkit/quota/quota_manager.cc
+++ b/webkit/quota/quota_manager.cc
@@ -15,6 +15,7 @@
#include "base/sys_info.h"
#include "net/base/net_util.h"
#include "webkit/quota/quota_database.h"
+#include "webkit/quota/quota_temporary_storage_evictor.h"
#include "webkit/quota/quota_types.h"
#include "webkit/quota/usage_tracker.h"
@@ -470,10 +471,15 @@ void QuotaManager::LazyInitialize() {
new UsageTracker(clients_, kStorageTypeTemporary));
persistent_usage_tracker_.reset(
new UsageTracker(clients_, kStorageTypePersistent));
+ // TODO(dmikurube): Change this hard-coded 3 seconds.
+ temporary_storage_evictor_.reset(new QuotaTemporaryStorageEvictor(
+ this, database_.get(), 3000, db_thread_));
kinuko 2011/05/11 12:43:30 Maybe this initialization could be delayed until t
Dai Mikurube (NOT FULLTIME) 2011/05/12 02:45:50 Hmm, added a TODO for now.
scoped_refptr<InitializeTask> task(
new InitializeTask(this, database_.get(), db_thread_, profile_path_));
task->Start();
+
+ temporary_storage_evictor_->Start();
}
void QuotaManager::RegisterClient(QuotaClient* client) {

Powered by Google App Engine
This is Rietveld 408576698