| 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_CROS_NETWORK_FUNCTIONS_H_ | 5 #ifndef CHROMEOS_NETWORK_CROS_NETWORK_FUNCTIONS_H_ |
| 6 #define CHROMEOS_NETWORK_CROS_NETWORK_FUNCTIONS_H_ | 6 #define CHROMEOS_NETWORK_CROS_NETWORK_FUNCTIONS_H_ |
| 7 | 7 |
| 8 // This header is introduced to make it easy to switch from chromeos_network.cc | 8 // This header is introduced to make it easy to switch from chromeos_network.cc |
| 9 // to Chrome's own DBus code. crosbug.com/16557 | 9 // to Chrome's own DBus code. crosbug.com/16557 |
| 10 // | 10 // |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 const std::string& device_path, | 246 const std::string& device_path, |
| 247 NetworkIPConfigVector* ipconfig_vector, | 247 NetworkIPConfigVector* ipconfig_vector, |
| 248 std::vector<std::string>* ipconfig_paths, | 248 std::vector<std::string>* ipconfig_paths, |
| 249 std::string* hardware_address); | 249 std::string* hardware_address); |
| 250 | 250 |
| 251 // Refreshes the IP config |ipconfig_path| to pick up changes in | 251 // Refreshes the IP config |ipconfig_path| to pick up changes in |
| 252 // configuration, and renew the DHCP lease, if any. | 252 // configuration, and renew the DHCP lease, if any. |
| 253 CHROMEOS_EXPORT void CrosRequestIPConfigRefresh( | 253 CHROMEOS_EXPORT void CrosRequestIPConfigRefresh( |
| 254 const std::string& ipconfig_path); | 254 const std::string& ipconfig_path); |
| 255 | 255 |
| 256 // Reads out the results of the last wifi scan. These results are not | |
| 257 // pre-cached in the library, so the call may block whilst the results are | |
| 258 // read over IPC. | |
| 259 // Returns false if an error occurred in reading the results. Note that | |
| 260 // a true return code only indicates the result set was successfully read, | |
| 261 // it does not imply a scan has successfully completed yet. | |
| 262 CHROMEOS_EXPORT bool CrosGetWifiAccessPoints(WifiAccessPointVector* result); | |
| 263 | |
| 264 // Configures the network service specified by |properties|. | 256 // Configures the network service specified by |properties|. |
| 265 CHROMEOS_EXPORT void CrosConfigureService( | 257 CHROMEOS_EXPORT void CrosConfigureService( |
| 266 const base::DictionaryValue& properties); | 258 const base::DictionaryValue& properties); |
| 267 | 259 |
| 268 // Changes the active cellular carrier. | 260 // Changes the active cellular carrier. |
| 269 CHROMEOS_EXPORT void CrosSetCarrier(const std::string& device_path, | 261 CHROMEOS_EXPORT void CrosSetCarrier(const std::string& device_path, |
| 270 const std::string& carrier, | 262 const std::string& carrier, |
| 271 const NetworkOperationCallback& callback); | 263 const NetworkOperationCallback& callback); |
| 272 | 264 |
| 273 } // namespace chromeos | 265 } // namespace chromeos |
| 274 | 266 |
| 275 #endif // CHROMEOS_NETWORK_CROS_NETWORK_FUNCTIONS_H_ | 267 #endif // CHROMEOS_NETWORK_CROS_NETWORK_FUNCTIONS_H_ |
| OLD | NEW |