Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1280)

Side by Side Diff: ash/system/chromeos/network/tray_network_state_observer.h

Issue 11361274: Add NetworkStateListDetailedView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H
6 #define ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H
7
8 #include <string>
9
10 #include "base/compiler_specific.h"
11 #include "chromeos/network/network_state_handler_observer.h"
12
13 namespace ash {
14 namespace internal {
15
16 class TrayNetwork;
17
18 class TrayNetworkStateObserver : public chromeos::NetworkStateHandlerObserver {
19 public:
20 enum WifiState {
21 WIFI_DISABLED,
22 WIFI_ENABLED,
23 WIFI_UNKNOWN,
24 };
25
26 explicit TrayNetworkStateObserver(TrayNetwork* tray);
27
28 virtual ~TrayNetworkStateObserver();
29
30 // NetworkStateHandlerObserver overrides.
31 virtual void NetworkManagerChanged() OVERRIDE;
32 virtual void NetworkListChanged(const NetworkStateList& networks) OVERRIDE;
33 virtual void NetworkServiceChanged(
34 const chromeos::NetworkState* network) OVERRIDE;
35
36 private:
37 TrayNetwork* tray_;
38 WifiState wifi_state_; // cache wifi enabled state
39
40 DISALLOW_COPY_AND_ASSIGN(TrayNetworkStateObserver);
41 };
42
43 } // namespace ash
44 } // namespace internal
45
46 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H
OLDNEW
« no previous file with comments | « ash/system/chromeos/network/tray_network.cc ('k') | ash/system/chromeos/network/tray_network_state_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698