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

Unified Diff: chromeos/network/network_state_handler.h

Issue 18348016: If requested, report network interfaces to management server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add test. Created 7 years, 5 months 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 side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698