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

Unified Diff: webkit/quota/quota_task.cc

Issue 11091042: Converted GetOriginsForHostTask to use base::PostTaskAndReply(). Deleted superclasses GetOriginsTas… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/quota/quota_task.h ('k') | webkit/quota/quota_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/quota/quota_task.cc
diff --git a/webkit/quota/quota_task.cc b/webkit/quota/quota_task.cc
index 728b999ea597a6d31f6f440054c172fa5348e5f6..3d591ff6aa22f7727af9a383e376232b92b30259 100644
--- a/webkit/quota/quota_task.cc
+++ b/webkit/quota/quota_task.cc
@@ -56,40 +56,6 @@ void QuotaTask::DeleteSoon() {
MessageLoop::current()->DeleteSoon(FROM_HERE, this);
}
-// QuotaThreadTask ---------------------------------------------------------
-
-QuotaThreadTask::QuotaThreadTask(
- QuotaTaskObserver* observer,
- TaskRunner* target_task_runner)
- : QuotaTask(observer),
- target_task_runner_(target_task_runner) {
-}
-
-QuotaThreadTask::~QuotaThreadTask() {
-}
-
-void QuotaThreadTask::Run() {
- target_task_runner_->PostTask(
- FROM_HERE,
- base::Bind(&QuotaThreadTask::CallRunOnTargetThread, this));
-}
-
-void QuotaThreadTask::CallRunOnTargetThread() {
- DCHECK(target_task_runner_->RunsTasksOnCurrentThread());
- if (RunOnTargetThreadAsync())
- original_task_runner()->PostTask(
- FROM_HERE,
- base::Bind(&QuotaThreadTask::CallCompleted, this));
-}
-
-bool QuotaThreadTask::RunOnTargetThreadAsync() {
- RunOnTargetThread();
- return true;
-}
-
-void QuotaThreadTask::RunOnTargetThread() {
-}
-
// QuotaTaskObserver -------------------------------------------------------
QuotaTaskObserver::~QuotaTaskObserver() {
« no previous file with comments | « webkit/quota/quota_task.h ('k') | webkit/quota/quota_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698