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

Unified Diff: chromeos/network/network_util.h

Issue 280023003: Implement networkingPrivate.getNetworks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/network/network_util.h
diff --git a/chromeos/network/network_util.h b/chromeos/network/network_util.h
index ebcc8117f0bc03d02d222e894a936439f414094b..5546929d55d8bae3d48d718d2ed1febffe20dbf5 100644
--- a/chromeos/network/network_util.h
+++ b/chromeos/network/network_util.h
@@ -86,11 +86,16 @@ CHROMEOS_EXPORT int32 NetmaskToPrefixLength(const std::string& netmask);
CHROMEOS_EXPORT bool ParseCellularScanResults(
const base::ListValue& list, std::vector<CellularScanResult>* scan_results);
-// Retrieves the list of visible network services by passing |pattern| to
-// NetworkStateHandler::GetNetworkListByType() and translates each into a list
-// of ONC dictionaries using TranslateShillServiceToONCPart.
+// Retrieves the list of visible network services by passing |pattern|,
+// |configured_only|, and |visible_only| to NetworkStateHandler::
+// GetNetworkListByType(). Translates the result into a list of ONC
+// dictionaries using TranslateShillServiceToONCPart. |limit| is used to limit
+// the number of results.
CHROMEOS_EXPORT scoped_ptr<base::ListValue> TranslateNetworkListToONC(
- NetworkTypePattern pattern);
+ NetworkTypePattern pattern,
+ bool configured_only,
+ bool visible_only,
+ int limit);
} // namespace network_util
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698