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_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
176 void GetDeviceListByType(const NetworkTypePattern& type, | 176 void GetDeviceListByType(const NetworkTypePattern& type, |
177 DeviceStateList* list) const; | 177 DeviceStateList* list) const; |
178 | 178 |
179 // Sets |list| to contain the list of favorite (aka "preferred") networks. | 179 // Sets |list| to contain the list of favorite (aka "preferred") networks. |
180 // See GetNetworkList() for usage, and notes for |favorite_list_|. | 180 // See GetNetworkList() for usage, and notes for |favorite_list_|. |
181 // Favorites that are visible have the same path() as the entries in | 181 // Favorites that are visible have the same path() as the entries in |
182 // GetNetworkList(), so GetNetworkState() can be used to determine if a | 182 // GetNetworkList(), so GetNetworkState() can be used to determine if a |
183 // favorite is visible and retrieve the complete properties (and vice-versa). | 183 // favorite is visible and retrieve the complete properties (and vice-versa). |
184 void GetFavoriteList(FavoriteStateList* list) const; | 184 void GetFavoriteList(FavoriteStateList* list) const; |
185 | 185 |
186 // Like GetFavoriteList() but only returns favorites with matching |type|. | 186 // Like GetFavoriteList() but only returns favorites with matching |type| and |
187 // and the following properties: | |
pneubeck (no reviews)
2014/05/15 18:28:38
remove one 'and'
stevenjb
2014/05/15 20:12:41
Done.
| |
188 // |configured_only| - if true only include networks where IsInProfile is true | |
189 // |visible_only| - if true only include networks in the visible Services list | |
187 void GetFavoriteListByType(const NetworkTypePattern& type, | 190 void GetFavoriteListByType(const NetworkTypePattern& type, |
191 bool configured_only, | |
192 bool visible_only, | |
188 FavoriteStateList* list) const; | 193 FavoriteStateList* list) const; |
189 | 194 |
190 // Finds and returns the FavoriteState associated with |service_path| or NULL | 195 // Finds and returns the FavoriteState associated with |service_path| or NULL |
191 // if not found. If |configured_only| is true, only returns saved entries | 196 // if not found. If |configured_only| is true, only returns saved entries |
192 // (IsInProfile is true). | 197 // (IsInProfile is true). |
193 const FavoriteState* GetFavoriteStateFromServicePath( | 198 const FavoriteState* GetFavoriteStateFromServicePath( |
194 const std::string& service_path, | 199 const std::string& service_path, |
195 bool configured_only) const; | 200 bool configured_only) const; |
196 | 201 |
197 // Finds and returns the FavoriteState associated with |guid| or NULL if not | 202 // Finds and returns the FavoriteState associated with |guid| or NULL if not |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
390 // Map of network specifiers to guids. Contains an entry for each | 395 // Map of network specifiers to guids. Contains an entry for each |
391 // FavoriteState that is not saved in a profile. | 396 // FavoriteState that is not saved in a profile. |
392 SpecifierGuidMap specifier_guid_map_; | 397 SpecifierGuidMap specifier_guid_map_; |
393 | 398 |
394 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); | 399 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); |
395 }; | 400 }; |
396 | 401 |
397 } // namespace chromeos | 402 } // namespace chromeos |
398 | 403 |
399 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 404 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
OLD | NEW |