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

Unified Diff: webkit/quota/quota_task.h

Issue 7046019: Implement DatabaseQuotaClient's DeteleteOriginData method. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
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
« no previous file with comments | « webkit/database/database_quota_client_unittest.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
===================================================================
--- webkit/quota/quota_task.h (revision 86470)
+++ webkit/quota/quota_task.h (working copy)
@@ -66,9 +66,19 @@
protected:
virtual ~QuotaThreadTask();
- // Called on the target message loop.
- virtual void RunOnTargetThread() = 0;
+ // One of the following Run methods should be overriden 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;
scoped_refptr<base::MessageLoopProxy> target_message_loop() const {
return target_message_loop_;
« no previous file with comments | « webkit/database/database_quota_client_unittest.cc ('k') | webkit/quota/quota_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698