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

Side by Side Diff: chromeos/network/network_state_handler.h

Issue 280023003: Implement networkingPrivate.getNetworks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nonchromeos Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos/network/network_state.cc ('k') | chromeos/network/network_state_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 // the following properties:
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
190 // |limit| - if > 0 limits the number of results.
187 void GetFavoriteListByType(const NetworkTypePattern& type, 191 void GetFavoriteListByType(const NetworkTypePattern& type,
192 bool configured_only,
193 bool visible_only,
194 int limit,
188 FavoriteStateList* list) const; 195 FavoriteStateList* list) const;
189 196
190 // Finds and returns the FavoriteState associated with |service_path| or NULL 197 // Finds and returns the FavoriteState associated with |service_path| or NULL
191 // if not found. If |configured_only| is true, only returns saved entries 198 // if not found. If |configured_only| is true, only returns saved entries
192 // (IsInProfile is true). 199 // (IsInProfile is true).
193 const FavoriteState* GetFavoriteStateFromServicePath( 200 const FavoriteState* GetFavoriteStateFromServicePath(
194 const std::string& service_path, 201 const std::string& service_path,
195 bool configured_only) const; 202 bool configured_only) const;
196 203
197 // Finds and returns the FavoriteState associated with |guid| or NULL if not 204 // Finds and returns the FavoriteState associated with |guid| or NULL if not
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 // Map of network specifiers to guids. Contains an entry for each 397 // Map of network specifiers to guids. Contains an entry for each
391 // FavoriteState that is not saved in a profile. 398 // FavoriteState that is not saved in a profile.
392 SpecifierGuidMap specifier_guid_map_; 399 SpecifierGuidMap specifier_guid_map_;
393 400
394 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); 401 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler);
395 }; 402 };
396 403
397 } // namespace chromeos 404 } // namespace chromeos
398 405
399 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ 406 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/network/network_state.cc ('k') | chromeos/network/network_state_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698