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 CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_ |
6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... | |
27 // Called when one or more network manager properties changes. | 27 // Called when one or more network manager properties changes. |
28 virtual void NetworkManagerChanged(); | 28 virtual void NetworkManagerChanged(); |
29 | 29 |
30 // The list of networks changed. | 30 // The list of networks changed. |
31 virtual void NetworkListChanged(const NetworkStateList& networks); | 31 virtual void NetworkListChanged(const NetworkStateList& networks); |
32 | 32 |
33 // The list of devices changed. Typically we don't care about the list | 33 // The list of devices changed. Typically we don't care about the list |
34 // of devices, so they are not passed in the method. | 34 // of devices, so they are not passed in the method. |
35 virtual void DeviceListChanged(); | 35 virtual void DeviceListChanged(); |
36 | 36 |
37 // The active network changed. |network| will be NULL if there is no longer | 37 // The default network changed (includes VPNs) or its state changed. |
pneubeck (no reviews)
2012/12/19 15:22:38
Aahh! I think we have terminology issue here. Plea
stevenjb
2012/12/19 18:01:07
That's a good observation. Will replace "state" wi
| |
38 // an active network. | 38 // |network| will be NULL if there is no longer a default network. |
39 virtual void ActiveNetworkChanged(const NetworkState* network); | 39 virtual void DefaultNetworkChanged(const NetworkState* network); |
40 | 40 |
41 // The state of the active network changed. | 41 // The state of |network| changed. |
42 virtual void ActiveNetworkStateChanged(const NetworkState* network); | 42 virtual void NetworkStateChanged(const NetworkState* network); |
43 | 43 |
44 // One or more network service properties changed. Note: for the active | 44 // One or more non-state network service properties changed. Note: this will |
pneubeck (no reviews)
2012/12/19 15:22:38
missing reference to |network|?
This is actually
stevenjb
2012/12/19 18:01:07
Fixed and clarified.
| |
45 // network, this will be called in *addition* to ActiveNetworkStateChanged() | 45 // get called in *addition* to NetworkStateChanged() when the state property |
46 // if the state property changed. | 46 // changes. Use this to track non-state properties like wifi strength. |
47 virtual void NetworkServiceChanged(const NetworkState* network); | 47 virtual void NetworkPropertyChanged(const NetworkState* network); |
48 | 48 |
49 private: | 49 private: |
50 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandlerObserver); | 50 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandlerObserver); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace chromeos | 53 } // namespace chromeos |
54 | 54 |
55 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_ | 55 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_ |
OLD | NEW |