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

Unified Diff: athena/activity/public/activity_manager_observer.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, 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
Index: athena/activity/public/activity_manager_observer.h
diff --git a/athena/activity/public/activity_manager_observer.h b/athena/activity/public/activity_manager_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..0c1a51cdf61c91eb5b0ab50e4f12a3dfd7f3c884
--- /dev/null
+++ b/athena/activity/public/activity_manager_observer.h
@@ -0,0 +1,27 @@
+// 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_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_OBSERVER_H_
+#define ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_OBSERVER_H_
+
+#include "athena/athena_export.h"
+
+namespace athena {
+
+class Activity;
+
+class ATHENA_EXPORT ActivityManagerObserver {
+ public:
+ virtual ~ActivityManagerObserver() {}
+
+ // Called after an |activity| got created.
+ virtual void OnActivityStarted(Activity* activity) = 0;
+
+ // Called before an |activity| gets destroyed.
+ virtual void OnActivityEnding(Activity* activity) = 0;
+};
+
+} // namespace athena
+
+#endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698