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

Unified Diff: action_processor.h

Issue 3259011: AU: Start an UpdateAttempter unit test suite. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: Created 10 years, 4 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 | « action_mock.h ('k') | action_processor_mock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: action_processor.h
diff --git a/action_processor.h b/action_processor.h
index 96e16f05f6b20155368c000477c724c1c4162474..a395b3d5ee33f4390604f2c12a43482e0da9d67f 100644
--- a/action_processor.h
+++ b/action_processor.h
@@ -43,12 +43,12 @@ class ActionProcessor {
public:
ActionProcessor();
- ~ActionProcessor();
+ virtual ~ActionProcessor();
// Starts processing the first Action in the queue. If there's a delegate,
// when all processing is complete, ProcessingDone() will be called on the
// delegate.
- void StartProcessing();
+ virtual void StartProcessing();
// Aborts processing. If an Action is running, it will have
// TerminateProcessing() called on it. The Action that was running
@@ -59,9 +59,10 @@ class ActionProcessor {
bool IsRunning() const { return NULL != current_action_; }
// Adds another Action to the end of the queue.
- void EnqueueAction(AbstractAction* action);
+ virtual void EnqueueAction(AbstractAction* action);
- // Sets the current delegate. Set to NULL to remove a delegate.
+ // Sets/gets the current delegate. Set to NULL to remove a delegate.
+ ActionProcessorDelegate* delegate() const { return delegate_; }
void set_delegate(ActionProcessorDelegate *delegate) {
delegate_ = delegate;
}
« no previous file with comments | « action_mock.h ('k') | action_processor_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698