| 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_NETWORK_LIBRARY_IMPL_CROS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_CROS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_CROS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_CROS_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/chromeos/cros/network_library_impl_base.h" | 8 #include "chrome/browser/chromeos/cros/network_library_impl_base.h" |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 virtual void RefreshIPConfig(Network* network) OVERRIDE; | 65 virtual void RefreshIPConfig(Network* network) OVERRIDE; |
| 66 | 66 |
| 67 virtual void DisconnectFromNetwork(const Network* network) OVERRIDE; | 67 virtual void DisconnectFromNetwork(const Network* network) OVERRIDE; |
| 68 virtual void CallEnableNetworkDeviceType( | 68 virtual void CallEnableNetworkDeviceType( |
| 69 ConnectionType device, bool enable) OVERRIDE; | 69 ConnectionType device, bool enable) OVERRIDE; |
| 70 virtual void CallRemoveNetwork(const Network* network) OVERRIDE; | 70 virtual void CallRemoveNetwork(const Network* network) OVERRIDE; |
| 71 | 71 |
| 72 virtual void EnableOfflineMode(bool enable) OVERRIDE; | 72 virtual void EnableOfflineMode(bool enable) OVERRIDE; |
| 73 | 73 |
| 74 virtual NetworkIPConfigVector GetIPConfigs( | 74 virtual void GetIPConfigs( |
| 75 const std::string& device_path, |
| 76 HardwareAddressFormat format, |
| 77 const NetworkGetIPConfigsCallback& callback) OVERRIDE; |
| 78 virtual NetworkIPConfigVector GetIPConfigsAndBlock( |
| 75 const std::string& device_path, | 79 const std::string& device_path, |
| 76 std::string* hardware_address, | 80 std::string* hardware_address, |
| 77 HardwareAddressFormat format) OVERRIDE; | 81 HardwareAddressFormat format) OVERRIDE; |
| 78 virtual void SetIPParameters(const std::string& service_path, | 82 virtual void SetIPParameters(const std::string& service_path, |
| 79 const std::string& address, | 83 const std::string& address, |
| 80 const std::string& netmask, | 84 const std::string& netmask, |
| 81 const std::string& gateway, | 85 const std::string& gateway, |
| 82 const std::string& name_servers, | 86 const std::string& name_servers, |
| 83 int dhcp_usage_mask) OVERRIDE; | 87 int dhcp_usage_mask) OVERRIDE; |
| 84 | 88 |
| 85 ////////////////////////////////////////////////////////////////////////////// | 89 ////////////////////////////////////////////////////////////////////////////// |
| 86 // Callbacks. | 90 // Callbacks. |
| 87 void UpdateNetworkStatus( | 91 void UpdateNetworkStatus( |
| 88 const std::string& path, const std::string& key, const Value& value); | 92 const std::string& path, const std::string& key, const Value& value); |
| 89 | 93 |
| 90 void UpdateNetworkDeviceStatus( | 94 void UpdateNetworkDeviceStatus( |
| 91 const std::string& path, const std::string& key, const Value& value); | 95 const std::string& path, const std::string& key, const Value& value); |
| 92 // Cellular specific updates. Returns false if update was ignored / reverted | 96 // Cellular specific updates. Returns false if update was ignored / reverted |
| 93 // and notification should be skipped. | 97 // and notification should be skipped. |
| 94 bool UpdateCellularDeviceStatus(NetworkDevice* device, PropertyIndex index); | 98 bool UpdateCellularDeviceStatus(NetworkDevice* device, PropertyIndex index); |
| 95 | 99 |
| 100 void GetIPConfigsCallback(const NetworkGetIPConfigsCallback& callback, |
| 101 HardwareAddressFormat format, |
| 102 const NetworkIPConfigVector& ipconfig_vector, |
| 103 const std::string& hardware_address); |
| 104 |
| 96 void PinOperationCallback(const std::string& path, | 105 void PinOperationCallback(const std::string& path, |
| 97 NetworkMethodErrorType error, | 106 NetworkMethodErrorType error, |
| 98 const std::string& error_message); | 107 const std::string& error_message); |
| 99 | 108 |
| 100 void CellularRegisterCallback(const std::string& path, | 109 void CellularRegisterCallback(const std::string& path, |
| 101 NetworkMethodErrorType error, | 110 NetworkMethodErrorType error, |
| 102 const std::string& error_message); | 111 const std::string& error_message); |
| 103 | 112 |
| 104 void NetworkConnectCallback(const std::string& service_path, | 113 void NetworkConnectCallback(const std::string& service_path, |
| 105 NetworkMethodErrorType error, | 114 NetworkMethodErrorType error, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 201 |
| 193 // Map of monitored devices. | 202 // Map of monitored devices. |
| 194 NetworkWatcherMap monitored_devices_; | 203 NetworkWatcherMap monitored_devices_; |
| 195 | 204 |
| 196 DISALLOW_COPY_AND_ASSIGN(NetworkLibraryImplCros); | 205 DISALLOW_COPY_AND_ASSIGN(NetworkLibraryImplCros); |
| 197 }; | 206 }; |
| 198 | 207 |
| 199 } // namespace chromeos | 208 } // namespace chromeos |
| 200 | 209 |
| 201 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_CROS_H_ | 210 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_CROS_H_ |
| OLD | NEW |