Chromium Code Reviews| Index: ash/system/tray/system_tray_delegate.h |
| diff --git a/ash/system/tray/system_tray_delegate.h b/ash/system/tray/system_tray_delegate.h |
| index 4df2f70452f6576632d8df5c2b866bf3a2cf7272..96b339e59131f87cdfcffaba4de14c239efeae93 100644 |
| --- a/ash/system/tray/system_tray_delegate.h |
| +++ b/ash/system/tray/system_tray_delegate.h |
| @@ -10,6 +10,7 @@ |
| #include "ash/ash_export.h" |
| #include "ash/system/user/login_status.h" |
| +#include "base/callback_forward.h" |
| #include "base/files/file_path.h" |
| #include "base/i18n/time_formatting.h" |
| #include "base/memory/scoped_ptr.h" |
| @@ -23,6 +24,8 @@ class TimeTicks; |
| namespace ash { |
| +class CustodianInfoTrayObserver; |
| + |
| struct ASH_EXPORT NetworkIconInfo { |
| NetworkIconInfo(); |
| ~NetworkIconInfo(); |
| @@ -295,6 +298,13 @@ class ASH_EXPORT SystemTrayDelegate { |
| // Returns accounts delegate for given user. |
| virtual tray::UserAccountsDelegate* GetUserAccountsDelegate( |
| const std::string& user_id) = 0; |
| + |
| + // Adding observers that are notified when supervised info is being changed. |
| + virtual void AddObserver(CustodianInfoTrayObserver* observer) { |
|
Daniel Erat
2014/10/07 16:16:00
any reason these aren't abstract like all the othe
merkulova
2014/10/08 09:19:37
I don't want to clutter default_system_tray_delega
|
| + }; |
| + |
| + virtual void RemoveObserver(CustodianInfoTrayObserver* observer) { |
| + }; |
| }; |
| } // namespace ash |