diff options
Diffstat (limited to 'common/action.h')
-rw-r--r-- | common/action.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/action.h b/common/action.h index d8049ac0..6c88216e 100644 --- a/common/action.h +++ b/common/action.h @@ -124,6 +124,15 @@ class AbstractAction { // Only the ActionProcessor should call this. virtual void TerminateProcessing() {} + // Called on asynchronous actions if the processing is suspended and resumed, + // respectively. These methods are called by the ActionProcessor and should + // not be explicitly called. + // The action may still call ActionCompleted() once the action is completed + // while the processing is suspended, for example if suspend/resume is not + // implemented for the given action. + virtual void SuspendAction() {} + virtual void ResumeAction() {} + // These methods are useful for debugging. TODO(adlr): consider using // std::type_info for this? // Type() returns a string of the Action type. I.e., for DownloadAction, |