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

Unified Diff: webkit/quota/quota_task.h

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 | « content/browser/in_process_webkit/indexed_db_quota_client.cc ('k') | webkit/quota/quota_task.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/quota/quota_task.h
diff --git a/webkit/quota/quota_task.h b/webkit/quota/quota_task.h
index 9e9276178ed02ff2992c16813b979f30fef40e19..bdc77d650252d0f5573ff9201093ac1c88493266 100644
--- a/webkit/quota/quota_task.h
+++ b/webkit/quota/quota_task.h
@@ -20,7 +20,6 @@ class TaskRunner;
namespace quota {
class QuotaTaskObserver;
-class QuotaThreadTask;
// A base class for quota tasks.
// TODO(kinuko): Revise this using base::Callback.
@@ -54,7 +53,6 @@ class QuotaTask {
private:
friend class base::DeleteHelper<QuotaTask>;
friend class QuotaTaskObserver;
- friend class QuotaThreadTask;
void Abort();
QuotaTaskObserver* observer_;
@@ -62,46 +60,9 @@ class QuotaTask {
bool delete_scheduled_;
};
-// For tasks that post tasks to the other thread.
-class QuotaThreadTask : public QuotaTask,
- public base::RefCountedThreadSafe<QuotaThreadTask> {
- public:
- QuotaThreadTask(QuotaTaskObserver* observer,
- base::TaskRunner* target_task_runner);
-
- protected:
- virtual ~QuotaThreadTask();
-
- // One of the following Run methods should be overridden for execution
- // on the target thread.
-
- // A task to invoke the CallCompleted() method on the original thread will
- // be scheduled immediately upon return from RunOnTargetThread().
- virtual void RunOnTargetThread();
-
- // A task to invoke the CallCompleted() method on the original thread will
- // only be scheduled if RunOnTargetThreadAsync returns true. If false is
- // returned, the derived class should schedule a task to do so upon actual
- // completion.
- virtual bool RunOnTargetThreadAsync();
-
- virtual void Run() OVERRIDE;
- base::TaskRunner* target_task_runner() const {
- return target_task_runner_;
- }
-
- private:
- friend class base::RefCountedThreadSafe<QuotaThreadTask>;
- friend class QuotaTaskObserver;
- void CallRunOnTargetThread();
-
- scoped_refptr<base::TaskRunner> target_task_runner_;
-};
-
class QuotaTaskObserver {
protected:
friend class QuotaTask;
- friend class QuotaThreadTask;
QuotaTaskObserver();
virtual ~QuotaTaskObserver();
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_quota_client.cc ('k') | webkit/quota/quota_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698