| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DEVICE_HANDLER_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_ |
| 6 #define CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 const std::string& old_pin, | 192 const std::string& old_pin, |
| 193 const std::string& new_pin, | 193 const std::string& new_pin, |
| 194 const base::Closure& callback, | 194 const base::Closure& callback, |
| 195 const network_handler::ErrorCallback& error_callback) = 0; | 195 const network_handler::ErrorCallback& error_callback) = 0; |
| 196 | 196 |
| 197 // Enables/disables roaming of all cellular devices. This happens | 197 // Enables/disables roaming of all cellular devices. This happens |
| 198 // asychronously in the background and applies also to devices which become | 198 // asychronously in the background and applies also to devices which become |
| 199 // available in the future. | 199 // available in the future. |
| 200 virtual void SetCellularAllowRoaming(bool allow_roaming) = 0; | 200 virtual void SetCellularAllowRoaming(bool allow_roaming) = 0; |
| 201 | 201 |
| 202 // Sets up MAC address randomization if available. This applies to devices |
| 203 // which become available in the future. |
| 204 virtual void SetMACAddressRandomizationEnabled(bool enabled) = 0; |
| 205 |
| 202 // Attempts to enable or disable TDLS for the specified IP or MAC address for | 206 // Attempts to enable or disable TDLS for the specified IP or MAC address for |
| 203 // the active wifi device. | 207 // the active wifi device. |
| 204 virtual void SetWifiTDLSEnabled( | 208 virtual void SetWifiTDLSEnabled( |
| 205 const std::string& ip_or_mac_address, | 209 const std::string& ip_or_mac_address, |
| 206 bool enabled, | 210 bool enabled, |
| 207 const network_handler::StringResultCallback& callback, | 211 const network_handler::StringResultCallback& callback, |
| 208 const network_handler::ErrorCallback& error_callback) = 0; | 212 const network_handler::ErrorCallback& error_callback) = 0; |
| 209 | 213 |
| 210 // Returns the TDLS status for the specified IP or MAC address for | 214 // Returns the TDLS status for the specified IP or MAC address for |
| 211 // the active wifi device. | 215 // the active wifi device. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 234 const base::Closure& callback, | 238 const base::Closure& callback, |
| 235 const network_handler::ErrorCallback& error_callback) = 0; | 239 const network_handler::ErrorCallback& error_callback) = 0; |
| 236 | 240 |
| 237 private: | 241 private: |
| 238 DISALLOW_COPY_AND_ASSIGN(NetworkDeviceHandler); | 242 DISALLOW_COPY_AND_ASSIGN(NetworkDeviceHandler); |
| 239 }; | 243 }; |
| 240 | 244 |
| 241 } // namespace chromeos | 245 } // namespace chromeos |
| 242 | 246 |
| 243 #endif // CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_ | 247 #endif // CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_ |
| OLD | NEW |