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

Unified Diff: webkit/quota/quota_task.cc

Issue 7002024: Implement QuotaTemporaryStorageEvictor. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 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_task.cc
diff --git a/webkit/quota/quota_task.cc b/webkit/quota/quota_task.cc
index b9872fe374bba941ed624aa382cc2466c2ff1650..d711e9d6d9644e9b30aa6263aaeb6f997ecddaf9 100644
--- a/webkit/quota/quota_task.cc
+++ b/webkit/quota/quota_task.cc
@@ -67,6 +67,21 @@ void QuotaThreadTask::CallRunOnTargetThread() {
FROM_HERE, NewRunnableMethod(this, &QuotaThreadTask::CallCompleted));
}
+// QuotaDelayedThreadTask --------------------------------------------------
+
+QuotaDelayedThreadTask::QuotaDelayedThreadTask(
+ QuotaTaskObserver* observer,
+ scoped_refptr<base::MessageLoopProxy> target_message_loop
+ int64 delay_ms)
+ : QuotaThreadTask(observer, target_message_loop),
+ delay_ms_(delay_ms) {
+}
+
+void QuotaDelayedThreadTask::Run() {
+ target_message_loop_->PostDelayedTask(FROM_HERE, NewRunnableMethod(
+ this, &QuotaThreadTask::CallRunOnTargetThread), delay_ms_);
kinuko 2011/05/11 07:49:30 On the second thought I guess for Evictor's main j
Dai Mikurube (NOT FULLTIME) 2011/05/11 11:23:50 Changed it and removed QuotaDelayedThreadTask. BT
Dai Mikurube (NOT FULLTIME) 2011/05/11 11:31:31 Ah, failed to remove it. Removed in the patch set
+}
+
// QuotaTaskObserver -------------------------------------------------------
QuotaTaskObserver::~QuotaTaskObserver() {

Powered by Google App Engine
This is Rietveld 408576698