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

Unified Diff: chrome/browser/chromeos/cros/network_ip_config.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 | « chrome/browser/chromeos/cros/mock_network_library.h ('k') | chrome/browser/chromeos/cros/network_library.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/network_ip_config.h
diff --git a/chrome/browser/chromeos/cros/network_ip_config.h b/chrome/browser/chromeos/cros/network_ip_config.h
index 3dc0224da0fe48be3089434cf9fd4a3846b42679..d4cea85691535601753983782466e4d45a4be3f7 100644
--- a/chrome/browser/chromeos/cros/network_ip_config.h
+++ b/chrome/browser/chromeos/cros/network_ip_config.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/callback.h"
namespace chromeos {
@@ -43,6 +44,14 @@ struct NetworkIPConfig {
typedef std::vector<NetworkIPConfig> NetworkIPConfigVector;
+// Used to return the list of IP configs and hardware address from an
+// asynchronous call to Shill. The hardware address is usually a MAC address
+// like "0011AA22BB33". |hardware_address| will be an empty string, if no
+// hardware address is found.
+typedef base::Callback<void(const NetworkIPConfigVector& ip_configs,
+ const std::string& hardware_address)>
+ NetworkGetIPConfigsCallback;
+
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_IP_CONFIG_H_
« no previous file with comments | « chrome/browser/chromeos/cros/mock_network_library.h ('k') | chrome/browser/chromeos/cros/network_library.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698