| OLD | NEW |
| 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_IP_CONFIG_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_IP_CONFIG_H_ |
| 6 #define CHROMEOS_NETWORK_NETWORK_IP_CONFIG_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_IP_CONFIG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | |
| 12 #include "base/callback.h" | 11 #include "base/callback.h" |
| 13 #include "chromeos/chromeos_export.h" | 12 #include "chromeos/chromeos_export.h" |
| 14 | 13 |
| 15 namespace chromeos { | 14 namespace chromeos { |
| 16 | 15 |
| 17 // ipconfig types (see flimflam/files/doc/ipconfig-api.txt) | 16 // ipconfig types (see flimflam/files/doc/ipconfig-api.txt) |
| 18 enum IPConfigType { | 17 enum IPConfigType { |
| 19 IPCONFIG_TYPE_UNKNOWN, | 18 IPCONFIG_TYPE_UNKNOWN, |
| 20 IPCONFIG_TYPE_IPV4, | 19 IPCONFIG_TYPE_IPV4, |
| 21 IPCONFIG_TYPE_IPV6, | 20 IPCONFIG_TYPE_IPV6, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 49 // asynchronous call to Shill. The hardware address is usually a MAC address | 48 // asynchronous call to Shill. The hardware address is usually a MAC address |
| 50 // like "0011AA22BB33". |hardware_address| will be an empty string, if no | 49 // like "0011AA22BB33". |hardware_address| will be an empty string, if no |
| 51 // hardware address is found. | 50 // hardware address is found. |
| 52 typedef base::Callback<void(const NetworkIPConfigVector& ip_configs, | 51 typedef base::Callback<void(const NetworkIPConfigVector& ip_configs, |
| 53 const std::string& hardware_address)> | 52 const std::string& hardware_address)> |
| 54 NetworkGetIPConfigsCallback; | 53 NetworkGetIPConfigsCallback; |
| 55 | 54 |
| 56 } // namespace chromeos | 55 } // namespace chromeos |
| 57 | 56 |
| 58 #endif // CHROMEOS_NETWORK_NETWORK_IP_CONFIG_H_ | 57 #endif // CHROMEOS_NETWORK_NETWORK_IP_CONFIG_H_ |
| OLD | NEW |