| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H_ | 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H_ |
| 6 #define ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H_ | 6 #define ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/common/system/chromeos/network/tray_network_state_observer.h" | 10 #include "ash/common/system/chromeos/network/tray_network_state_observer.h" |
| 11 #include "ash/common/system/tray/system_tray_item.h" | 11 #include "ash/common/system/tray/system_tray_item.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 class TrayNetworkStateObserver; | 15 class TrayNetworkStateObserver; |
| 16 | 16 |
| 17 namespace tray { | 17 namespace tray { |
| 18 class NetworkDetailedView; | 18 class NetworkDetailedView; |
| 19 class VpnDefaultView; | 19 class VpnDefaultView; |
| 20 class VpnDetailedView; | |
| 21 } | 20 } |
| 22 | 21 |
| 23 class TrayVPN : public SystemTrayItem, | 22 class TrayVPN : public SystemTrayItem, |
| 24 public TrayNetworkStateObserver::Delegate { | 23 public TrayNetworkStateObserver::Delegate { |
| 25 public: | 24 public: |
| 26 explicit TrayVPN(SystemTray* system_tray); | 25 explicit TrayVPN(SystemTray* system_tray); |
| 27 ~TrayVPN() override; | 26 ~TrayVPN() override; |
| 28 | 27 |
| 29 // SystemTrayItem | 28 // SystemTrayItem |
| 30 views::View* CreateTrayView(LoginStatus status) override; | 29 views::View* CreateTrayView(LoginStatus status) override; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 43 tray::VpnDefaultView* default_; | 42 tray::VpnDefaultView* default_; |
| 44 tray::NetworkDetailedView* detailed_; | 43 tray::NetworkDetailedView* detailed_; |
| 45 std::unique_ptr<TrayNetworkStateObserver> network_state_observer_; | 44 std::unique_ptr<TrayNetworkStateObserver> network_state_observer_; |
| 46 | 45 |
| 47 DISALLOW_COPY_AND_ASSIGN(TrayVPN); | 46 DISALLOW_COPY_AND_ASSIGN(TrayVPN); |
| 48 }; | 47 }; |
| 49 | 48 |
| 50 } // namespace ash | 49 } // namespace ash |
| 51 | 50 |
| 52 #endif // ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H_ | 51 #endif // ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H_ |
| OLD | NEW |