summaryrefslogtreecommitdiffstats
path: root/chromeos/network/network_state_handler.h
diff options
context:
space:
mode:
authorstevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-19 21:36:00 +0000
committerstevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-19 21:36:00 +0000
commit04df97cf67a5b7fdcd5bb3b729975ee7fd49c417 (patch)
treed424b7b34a7981380cd22e7bd59016f25eb47b06 /chromeos/network/network_state_handler.h
parent6eb4cc7f9a06e3021aadebe3fb6a10547974eeb8 (diff)
downloadchromium_src-04df97cf67a5b7fdcd5bb3b729975ee7fd49c417.zip
chromium_src-04df97cf67a5b7fdcd5bb3b729975ee7fd49c417.tar.gz
chromium_src-04df97cf67a5b7fdcd5bb3b729975ee7fd49c417.tar.bz2
Implement networkingPrivate.getNetworks
Design Doc and Proposal here: https://docs.google.com/a/google.com/document/d/1QWIzDvf_-iZJW8CINvhxzIERwwKeg72302hNUw0ZrSM/edit This CL depends on https://codereview.chromium.org/275543005/ BUG=371966 Review URL: https://codereview.chromium.org/280023003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271490 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/network/network_state_handler.h')
-rw-r--r--chromeos/network/network_state_handler.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/chromeos/network/network_state_handler.h b/chromeos/network/network_state_handler.h
index 0d3709e..0765778 100644
--- a/chromeos/network/network_state_handler.h
+++ b/chromeos/network/network_state_handler.h
@@ -183,8 +183,15 @@ class CHROMEOS_EXPORT NetworkStateHandler
// favorite is visible and retrieve the complete properties (and vice-versa).
void GetFavoriteList(FavoriteStateList* list) const;
- // Like GetFavoriteList() but only returns favorites with matching |type|.
+ // Like GetFavoriteList() but only returns favorites with matching |type| and
+ // the following properties:
+ // |configured_only| - if true only include networks where IsInProfile is true
+ // |visible_only| - if true only include networks in the visible Services list
+ // |limit| - if > 0 limits the number of results.
void GetFavoriteListByType(const NetworkTypePattern& type,
+ bool configured_only,
+ bool visible_only,
+ int limit,
FavoriteStateList* list) const;
// Finds and returns the FavoriteState associated with |service_path| or NULL