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

Side by Side Diff: athena/activity/public/activity_manager.h

Issue 513523002: Adding Baseframework of the ResourceManager (all hooks and observers) are being put in place with a… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Aaaand another rebase Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_H_ 5 #ifndef ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_H_
6 #define ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_H_ 6 #define ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_H_
7 7
8 #include "athena/athena_export.h" 8 #include "athena/athena_export.h"
9 9
10 namespace athena { 10 namespace athena {
11 11
12 class Activity; 12 class Activity;
13 class ActivityManagerObserver;
13 14
14 // Manages a set of activities. 15 // Manages a set of activities.
15 class ATHENA_EXPORT ActivityManager { 16 class ATHENA_EXPORT ActivityManager {
16 public: 17 public:
17 static ActivityManager* Create(); 18 static ActivityManager* Create();
18 static ActivityManager* Get(); 19 static ActivityManager* Get();
19 static void Shutdown(); 20 static void Shutdown();
20 21
21 virtual ~ActivityManager() {} 22 virtual ~ActivityManager() {}
22 23
23 // Adds/Removes an activity. ActivityManager owns the activities. 24 // Adds/Removes an activity. ActivityManager owns the activities.
24 virtual void AddActivity(Activity* activity) = 0; 25 virtual void AddActivity(Activity* activity) = 0;
25 virtual void RemoveActivity(Activity* activity) = 0; 26 virtual void RemoveActivity(Activity* activity) = 0;
26 27
27 // Updates the UI when the task color/title changes. 28 // Updates the UI when the task color/title changes.
28 virtual void UpdateActivity(Activity* activity) = 0; 29 virtual void UpdateActivity(Activity* activity) = 0;
30
31 virtual void AddObserver(ActivityManagerObserver* observer) = 0;
32 virtual void RemoveObserver(ActivityManagerObserver* observer) = 0;
29 }; 33 };
30 34
31 } // namespace athena 35 } // namespace athena
32 36
33 #endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_H_ 37 #endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698