Index: chrome/browser/extensions/api/api_function.h |
diff --git a/chrome/browser/extensions/api/api_function.h b/chrome/browser/extensions/api/api_function.h |
index 416035fbf238a79a63920ec11437991608e81a6b..229d1c59e9aec7d442ac0b37cd438e29debf2520 100644 |
--- a/chrome/browser/extensions/api/api_function.h |
+++ b/chrome/browser/extensions/api/api_function.h |
@@ -27,7 +27,13 @@ class AsyncIOAPIFunction : public AsyncExtensionFunction { |
virtual bool Prepare() = 0; |
// Do actual work. Guaranteed to happen on IO thread. |
- virtual void Work() = 0; |
+ virtual void Work(); |
+ |
+ // Start the asynchronous work. Guraranteed to happen on IO thread. |
+ virtual void AsyncWorkStart(); |
+ |
+ // Notify AsyncIOAPIFunction that the work is completed |
+ void AsyncWorkCompleted(); |
// Respond. Guaranteed to happen on UI thread. |
virtual bool Respond() = 0; |