| Index: chromeos/network/network_state_handler.h
|
| diff --git a/chromeos/network/network_state_handler.h b/chromeos/network/network_state_handler.h
|
| index 4518634613d9bbe36805502da6ea5293ca38e30c..6680c35eb462a52784a1ae9f0413bb4b3c0ee521 100644
|
| --- a/chromeos/network/network_state_handler.h
|
| +++ b/chromeos/network/network_state_handler.h
|
| @@ -61,6 +61,7 @@ class CHROMEOS_EXPORT NetworkStateHandler
|
| public:
|
| typedef std::vector<ManagedState*> ManagedStateList;
|
| typedef std::vector<const NetworkState*> NetworkStateList;
|
| + typedef std::vector<const DeviceState*> DeviceStateList;
|
|
|
| enum TechnologyState {
|
| TECHNOLOGY_UNAVAILABLE,
|
| @@ -140,6 +141,12 @@ class CHROMEOS_EXPORT NetworkStateHandler
|
| // only on the UI thread).
|
| void GetNetworkList(NetworkStateList* list) const;
|
|
|
| + // Sets |list| to contain the list of devices. The returned list contains
|
| + // a copy of DeviceState pointers which should not be stored or used beyond
|
| + // the scope of the calling function (i.e. they may later become invalid, but
|
| + // only on the UI thread).
|
| + void GetDeviceList(DeviceStateList* list) const;
|
| +
|
| // Requests a network scan. This may trigger updates to the network
|
| // list, which will trigger the appropriate observer calls.
|
| void RequestScan() const;
|
|
|