Chromium Code Reviews| Index: ash/mus/system_tray_delegate_mus.h |
| diff --git a/ash/mus/system_tray_delegate_mus.h b/ash/mus/system_tray_delegate_mus.h |
| index 814ffdde13c4a0b8535a5fcb52b9b734dcf4587f..34d4edf3426d86776a6af65d21e0496db3bb46c3 100644 |
| --- a/ash/mus/system_tray_delegate_mus.h |
| +++ b/ash/mus/system_tray_delegate_mus.h |
| @@ -5,6 +5,8 @@ |
| #ifndef ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_ |
| #define ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_ |
| +#include <memory> |
| + |
| #include "ash/common/system/tray/default_system_tray_delegate.h" |
| #include "ash/public/interfaces/system_tray.mojom.h" |
| #include "base/i18n/time_formatting.h" |
| @@ -16,6 +18,9 @@ class Connector; |
| namespace ash { |
| +class NetworkingConfigDelegate; |
| +class VPNDelegate; |
|
msw
2016/09/28 22:19:54
optional nit: if the fwd decl suffices, make vpn_d
James Cook
2016/09/29 16:45:39
Actually, I went the other way and made this whole
|
| + |
| // Handles the settings displayed in the system tray menu. For mus most settings |
| // are obtained from chrome browser via mojo IPC. For the classic ash version |
| // see SystemTrayDelegateChromeOS. |
| @@ -54,6 +59,8 @@ class SystemTrayDelegateMus : public DefaultSystemTrayDelegate, |
| void ShowPublicAccountInfo() override; |
| void ShowEnterpriseInfo() override; |
| void ShowProxySettings() override; |
| + NetworkingConfigDelegate* GetNetworkingConfigDelegate() const override; |
| + VPNDelegate* GetVPNDelegate() const override; |
| // mojom::SystemTray: |
| void SetUse24HourClock(bool use_24_hour) override; |
| @@ -67,6 +74,12 @@ class SystemTrayDelegateMus : public DefaultSystemTrayDelegate, |
| // 12 or 24 hour display. |
| base::HourClockType hour_clock_type_; |
| + std::unique_ptr<NetworkingConfigDelegate> networking_config_delegate_; |
| + |
| +#if defined(OS_CHROMEOS) |
| + std::unique_ptr<VPNDelegate> vpn_delegate_; |
| +#endif |
| + |
| DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateMus); |
| }; |