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

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

Issue 11614035: Improve NetworkStateHandler API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Separate out OnDefaultNetworkChanged and move kMatchType* to NetworkStateHandler 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
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_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H 5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H
6 #define ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H 6 #define ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 12 matching lines...) Expand all
23 WIFI_UNKNOWN, 23 WIFI_UNKNOWN,
24 }; 24 };
25 25
26 explicit TrayNetworkStateObserver(TrayNetwork* tray); 26 explicit TrayNetworkStateObserver(TrayNetwork* tray);
27 27
28 virtual ~TrayNetworkStateObserver(); 28 virtual ~TrayNetworkStateObserver();
29 29
30 // NetworkStateHandlerObserver overrides. 30 // NetworkStateHandlerObserver overrides.
31 virtual void NetworkManagerChanged() OVERRIDE; 31 virtual void NetworkManagerChanged() OVERRIDE;
32 virtual void NetworkListChanged(const NetworkStateList& networks) OVERRIDE; 32 virtual void NetworkListChanged(const NetworkStateList& networks) OVERRIDE;
33 virtual void NetworkServiceChanged( 33 virtual void NetworkPropertiesUpdated(
34 const chromeos::NetworkState* network) OVERRIDE; 34 const chromeos::NetworkState* network) OVERRIDE;
35 35
36 private: 36 private:
37 TrayNetwork* tray_; 37 TrayNetwork* tray_;
38 WifiState wifi_state_; // cache wifi enabled state 38 WifiState wifi_state_; // cache wifi enabled state
39 39
40 DISALLOW_COPY_AND_ASSIGN(TrayNetworkStateObserver); 40 DISALLOW_COPY_AND_ASSIGN(TrayNetworkStateObserver);
41 }; 41 };
42 42
43 } // namespace ash 43 } // namespace ash
44 } // namespace internal 44 } // namespace internal
45 45
46 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H 46 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698