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

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

Issue 11367048: This is the first pass at making GetIPConfigs asynchronous. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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 | « no previous file | 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 a850d5127824a1d29ccd96b8320ce5806fb4341f..64747e645b018a5b9281356f09890215bb055f94 100644
--- a/chrome/browser/chromeos/cros/cros_network_functions.h
+++ b/chrome/browser/chromeos/cros/cros_network_functions.h
@@ -263,14 +263,21 @@ void CrosRequestCellularRegister(const std::string& device_path,
// Returns false on failure and true on success.
bool CrosSetOfflineMode(bool offline);
+// Gets a list of all the NetworkIPConfigs using a given device path,
+// and returns the information via callback.
+void CrosListIPConfigs(const std::string& device_path,
+ const NetworkGetIPConfigsCallback& callback);
+
+// DEPRECATED, DO NOT USE: Use the asynchronous CrosListIPConfigs, above,
+// instead.
// Gets a list of all the NetworkIPConfigs using a given device path.
-// Optionally, you can get ipconfig-paths and the hardware address.
-// Pass NULL as |ipconfig_paths| and |hardware_address| if you are not
-// interested in these values.
-bool CrosListIPConfigs(const std::string& device_path,
- NetworkIPConfigVector* ipconfig_vector,
- std::vector<std::string>* ipconfig_paths,
- std::string* hardware_address);
+// Optionally, you can get ipconfig-paths and the hardware address. Pass NULL as
+// |ipconfig_paths| and |hardware_address| if you are not interested in these
+// values.
+bool CrosListIPConfigsAndBlock(const std::string& device_path,
+ NetworkIPConfigVector* ipconfig_vector,
+ std::vector<std::string>* ipconfig_paths,
+ std::string* hardware_address);
// Adds a IPConfig of the given type to the device
bool CrosAddIPConfig(const std::string& device_path, IPConfigType type);
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/cros_network_functions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698