Index: chrome/browser/status_icons/status_tray_manager.h |
diff --git a/chrome/browser/status_icons/status_tray_manager.h b/chrome/browser/status_icons/status_tray_manager.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9f9d2d752e05b87c0530bb0e612dc8a87f2f1227 |
--- /dev/null |
+++ b/chrome/browser/status_icons/status_tray_manager.h |
@@ -0,0 +1,30 @@ |
+// Copyright (c) 2010 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 CHROME_BROWSER_STATUS_ICONS_STATUS_TRAY_MANAGER_H_ |
+#define CHROME_BROWSER_STATUS_ICONS_STATUS_TRAY_MANAGER_H_ |
+ |
+#include "base/scoped_ptr.h" |
+#include "chrome/browser/status_icons/status_icon.h" |
+ |
+class Profile; |
+class StatusTray; |
+ |
+// Manages the set of status tray icons and associated UI. |
+class StatusTrayManager : private StatusIcon::StatusIconObserver { |
+ public: |
+ StatusTrayManager(); |
+ virtual ~StatusTrayManager(); |
+ |
+ void Init(Profile* profile); |
+ |
+ private: |
+ // StatusIcon::StatusIconObserver callbacks |
+ virtual void OnClicked(); |
+ |
+ scoped_ptr<StatusTray> status_tray_; |
+ Profile* profile_; |
+}; |
+ |
+#endif // CHROME_BROWSER_STATUS_ICONS_STATUS_TRAY_MANAGER_H_ |