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

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: Finishing touches. 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
« no previous file with comments | « chrome/test/data/policy/policy_test_cases.json ('k') | chromeos/network/network_state_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_state_handler.h
diff --git a/chromeos/network/network_state_handler.h b/chromeos/network/network_state_handler.h
index d9bb1d2c64e6b732922d8d571cd485f1de13ab33..baf5671d05862d65953801f065f6134e7a054ac9 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;
typedef std::vector<const FavoriteState*> FavoriteStateList;
enum TechnologyState {
@@ -146,6 +147,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;
+
// Sets |list| to contain the list of favorite (aka "preferred") networks.
// See GetNetworkList() for usage, and notes for |favorite_list_|.
// Favorites that are visible have the same path() as the entries in
« no previous file with comments | « chrome/test/data/policy/policy_test_cases.json ('k') | chromeos/network/network_state_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698