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 CHROME_BROWSER_CHROMEOS_CROS_CROS_NETWORK_FUNCTIONS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_CROS_NETWORK_FUNCTIONS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CROS_CROS_NETWORK_FUNCTIONS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_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 // All calls to functions in chromeos_network.h should be made through | 10 // All calls to functions in chromeos_network.h should be made through |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 NetworkIPConfigVector* ipconfig_vector, | 271 NetworkIPConfigVector* ipconfig_vector, |
272 std::vector<std::string>* ipconfig_paths, | 272 std::vector<std::string>* ipconfig_paths, |
273 std::string* hardware_address); | 273 std::string* hardware_address); |
274 | 274 |
275 // Adds a IPConfig of the given type to the device | 275 // Adds a IPConfig of the given type to the device |
276 bool CrosAddIPConfig(const std::string& device_path, IPConfigType type); | 276 bool CrosAddIPConfig(const std::string& device_path, IPConfigType type); |
277 | 277 |
278 // Removes an existing IP Config | 278 // Removes an existing IP Config |
279 bool CrosRemoveIPConfig(const std::string& ipconfig_path); | 279 bool CrosRemoveIPConfig(const std::string& ipconfig_path); |
280 | 280 |
| 281 // Refreshes the IP config |ipconfig_path| to pick up changes in |
| 282 // configuration, and renew the DHCP lease, if any. |
| 283 void CrosRequestIPConfigRefresh(const std::string& ipconfig_path); |
| 284 |
281 // Reads out the results of the last wifi scan. These results are not | 285 // Reads out the results of the last wifi scan. These results are not |
282 // pre-cached in the library, so the call may block whilst the results are | 286 // pre-cached in the library, so the call may block whilst the results are |
283 // read over IPC. | 287 // read over IPC. |
284 // Returns false if an error occurred in reading the results. Note that | 288 // Returns false if an error occurred in reading the results. Note that |
285 // a true return code only indicates the result set was successfully read, | 289 // a true return code only indicates the result set was successfully read, |
286 // it does not imply a scan has successfully completed yet. | 290 // it does not imply a scan has successfully completed yet. |
287 bool CrosGetWifiAccessPoints(WifiAccessPointVector* result); | 291 bool CrosGetWifiAccessPoints(WifiAccessPointVector* result); |
288 | 292 |
289 // Configures the network service specified by |properties|. | 293 // Configures the network service specified by |properties|. |
290 void CrosConfigureService(const base::DictionaryValue& properties); | 294 void CrosConfigureService(const base::DictionaryValue& properties); |
291 | 295 |
292 } // namespace chromeos | 296 } // namespace chromeos |
293 | 297 |
294 #endif // CHROME_BROWSER_CHROMEOS_CROS_CROS_NETWORK_FUNCTIONS_H_ | 298 #endif // CHROME_BROWSER_CHROMEOS_CROS_CROS_NETWORK_FUNCTIONS_H_ |
OLD | NEW |