Index: athena/task/public/task_manager.h |
diff --git a/athena/task/public/task_manager.h b/athena/task/public/task_manager.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1a28facdef4b39333ae3b458784b67993a68e418 |
--- /dev/null |
+++ b/athena/task/public/task_manager.h |
@@ -0,0 +1,33 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef ATHENA_TASK_TASK_MANAGER_H_ |
+#define ATHENA_TASK_TASK_MANAGER_H_ |
+ |
+#include "athena/athena_export.h" |
+ |
+namespace athena { |
+ |
+class Task; |
+ |
+// Manages a set of tasks. |
Mr4D (OOO till 08-26)
2014/05/27 20:12:42
As stated above - could you please explain further
|
+class ATHENA_EXPORT TaskManager { |
+ public: |
+ static TaskManager* Create(); |
+ static TaskManager* Get(); |
+ static void Shutdown(); |
+ |
+ virtual ~TaskManager() {} |
+ |
+ // Adds/Removes a task. |
+ virtual void AddTask(Task* task) = 0; |
+ virtual void RemoveTask(Task* task) = 0; |
+ |
+ // Updates the UI when the task color/title changes. |
+ virtual void UpdateTask(Task* task) = 0; |
+}; |
+ |
+} // namespace athena |
+ |
+#endif // ATHENA_TASK_TASK_MANAGER_H_ |