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

Unified Diff: chrome/browser/chromeos/cros/cros_network_functions.h

Issue 10827283: This updates the StaticIP configuration UI to match new mocks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test Created 8 years, 4 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/app/generated_resources.grd ('k') | chrome/browser/chromeos/cros/cros_network_functions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/cros_network_functions.h
diff --git a/chrome/browser/chromeos/cros/cros_network_functions.h b/chrome/browser/chromeos/cros/cros_network_functions.h
index f8adb266a09e21f7536ca0294a4d3c89b4be89cd..7050c875fd20a9503483c0afc3091f8337a8435a 100644
--- a/chrome/browser/chromeos/cros/cros_network_functions.h
+++ b/chrome/browser/chromeos/cros/cros_network_functions.h
@@ -293,6 +293,15 @@ bool CrosGetWifiAccessPoints(WifiAccessPointVector* result);
// Configures the network service specified by |properties|.
void CrosConfigureService(const base::DictionaryValue& properties);
+// Converts a |prefix_length| to a netmask. (for IPv4 only)
+// e.g. a |prefix_length| of 24 is converted to a netmask of "255.255.255.0".
+// Invalid prefix lengths will return the empty string.
+std::string CrosPrefixLengthToNetmask(int32 prefix_length);
+
+// Converts a |netmask| to a prefixlen. (for IPv4 only)
+// e.g. a |netmask| of 255.255.255.0 is converted to a prefixlen of 24
+int32 CrosNetmaskToPrefixLength(const std::string& netmask);
+
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_CROS_CROS_NETWORK_FUNCTIONS_H_
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/cros/cros_network_functions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698