| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  265  |  265  | 
|  266 // Gets a list of all the NetworkIPConfigs using a given device path. |  266 // Gets a list of all the NetworkIPConfigs using a given device path. | 
|  267 // Optionally, you can get ipconfig-paths and the hardware address. |  267 // Optionally, you can get ipconfig-paths and the hardware address. | 
|  268 // Pass NULL as |ipconfig_paths| and |hardware_address| if you are not |  268 // Pass NULL as |ipconfig_paths| and |hardware_address| if you are not | 
|  269 // interested in these values. |  269 // interested in these values. | 
|  270 bool CrosListIPConfigs(const std::string& device_path, |  270 bool CrosListIPConfigs(const std::string& device_path, | 
|  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 |  | 
|  276 bool CrosAddIPConfig(const std::string& device_path, IPConfigType type); |  | 
|  277  |  | 
|  278 // Removes an existing IP Config |  | 
|  279 bool CrosRemoveIPConfig(const std::string& ipconfig_path); |  | 
|  280  |  | 
|  281 // Refreshes the IP config |ipconfig_path| to pick up changes in |  275 // Refreshes the IP config |ipconfig_path| to pick up changes in | 
|  282 // configuration, and renew the DHCP lease, if any. |  276 // configuration, and renew the DHCP lease, if any. | 
|  283 void CrosRequestIPConfigRefresh(const std::string& ipconfig_path); |  277 void CrosRequestIPConfigRefresh(const std::string& ipconfig_path); | 
|  284  |  278  | 
|  285 // Reads out the results of the last wifi scan. These results are not |  279 // Reads out the results of the last wifi scan. These results are not | 
|  286 // pre-cached in the library, so the call may block whilst the results are |  280 // pre-cached in the library, so the call may block whilst the results are | 
|  287 // read over IPC. |  281 // read over IPC. | 
|  288 // Returns false if an error occurred in reading the results. Note that |  282 // Returns false if an error occurred in reading the results. Note that | 
|  289 // a true return code only indicates the result set was successfully read, |  283 // a true return code only indicates the result set was successfully read, | 
|  290 // it does not imply a scan has successfully completed yet. |  284 // it does not imply a scan has successfully completed yet. | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
|  303 int32 CrosNetmaskToPrefixLength(const std::string& netmask); |  297 int32 CrosNetmaskToPrefixLength(const std::string& netmask); | 
|  304  |  298  | 
|  305 // Changes the active cellular carrier. |  299 // Changes the active cellular carrier. | 
|  306 void CrosSetCarrier(const std::string& device_path, |  300 void CrosSetCarrier(const std::string& device_path, | 
|  307                     const std::string& carrier, |  301                     const std::string& carrier, | 
|  308                     const NetworkOperationCallback& callback); |  302                     const NetworkOperationCallback& callback); | 
|  309  |  303  | 
|  310 }  // namespace chromeos |  304 }  // namespace chromeos | 
|  311  |  305  | 
|  312 #endif  // CHROME_BROWSER_CHROMEOS_CROS_CROS_NETWORK_FUNCTIONS_H_ |  306 #endif  // CHROME_BROWSER_CHROMEOS_CROS_CROS_NETWORK_FUNCTIONS_H_ | 
| OLD | NEW |