ProfilePolicyConnectorFactory: Refactoring from Profile to BrowserContext.
[chromium-blink-merge.git] / ash / system / chromeos / network / tray_vpn.h
blob9b56c826b86e7af8b94e42240c196f47baffee6c
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
3 // found in the LICENSE file.
5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H
6 #define ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H
8 #include "ash/system/chromeos/network/tray_network_state_observer.h"
9 #include "ash/system/tray/system_tray_item.h"
10 #include "base/memory/scoped_ptr.h"
12 namespace ash {
13 class TrayNetworkStateObserver;
15 namespace tray {
16 class NetworkDetailedView;
17 class VpnDefaultView;
18 class VpnDetailedView;
21 class TrayVPN : public SystemTrayItem,
22 public TrayNetworkStateObserver::Delegate {
23 public:
24 explicit TrayVPN(SystemTray* system_tray);
25 ~TrayVPN() override;
27 // SystemTrayItem
28 views::View* CreateTrayView(user::LoginStatus status) override;
29 views::View* CreateDefaultView(user::LoginStatus status) override;
30 views::View* CreateDetailedView(user::LoginStatus status) override;
31 void DestroyTrayView() override;
32 void DestroyDefaultView() override;
33 void DestroyDetailedView() override;
34 void UpdateAfterLoginStatusChange(user::LoginStatus status) override;
35 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) override;
37 // TrayNetworkStateObserver::Delegate
38 void NetworkStateChanged() override;
40 private:
41 tray::VpnDefaultView* default_;
42 tray::NetworkDetailedView* detailed_;
43 scoped_ptr<TrayNetworkStateObserver> network_state_observer_;
45 DISALLOW_COPY_AND_ASSIGN(TrayVPN);
48 } // namespace ash
50 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H