| 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_IMPL_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_IMPL_H_ |
| 6 #define CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_IMPL_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 virtual void ChangePin(const std::string& device_path, | 84 virtual void ChangePin(const std::string& device_path, |
| 85 const std::string& old_pin, | 85 const std::string& old_pin, |
| 86 const std::string& new_pin, | 86 const std::string& new_pin, |
| 87 const base::Closure& callback, | 87 const base::Closure& callback, |
| 88 const network_handler::ErrorCallback& error_callback) | 88 const network_handler::ErrorCallback& error_callback) |
| 89 OVERRIDE; | 89 OVERRIDE; |
| 90 | 90 |
| 91 virtual void SetCellularAllowRoaming(bool allow_roaming) OVERRIDE; | 91 virtual void SetCellularAllowRoaming(bool allow_roaming) OVERRIDE; |
| 92 | 92 |
| 93 virtual void SetWifiTDLSEnabled( |
| 94 const std::string& ip_or_mac_address, |
| 95 bool enabled, |
| 96 const network_handler::StringResultCallback& callback, |
| 97 const network_handler::ErrorCallback& error_callback) OVERRIDE; |
| 98 |
| 93 // NetworkStateHandlerObserver overrides | 99 // NetworkStateHandlerObserver overrides |
| 94 virtual void DeviceListChanged() OVERRIDE; | 100 virtual void DeviceListChanged() OVERRIDE; |
| 95 | 101 |
| 96 private: | 102 private: |
| 97 friend class NetworkHandler; | 103 friend class NetworkHandler; |
| 98 friend class NetworkDeviceHandlerTest; | 104 friend class NetworkDeviceHandlerTest; |
| 99 | 105 |
| 100 NetworkDeviceHandlerImpl(); | 106 NetworkDeviceHandlerImpl(); |
| 101 | 107 |
| 102 void Init(NetworkStateHandler* network_state_handler); | 108 void Init(NetworkStateHandler* network_state_handler); |
| 103 | 109 |
| 104 // Apply the current value of |cellular_allow_roaming_| to all existing | 110 // Apply the current value of |cellular_allow_roaming_| to all existing |
| 105 // cellular devices of Shill. | 111 // cellular devices of Shill. |
| 106 void ApplyCellularAllowRoamingToShill(); | 112 void ApplyCellularAllowRoamingToShill(); |
| 107 | 113 |
| 108 NetworkStateHandler* network_state_handler_; | 114 NetworkStateHandler* network_state_handler_; |
| 109 | 115 |
| 110 bool cellular_allow_roaming_; | 116 bool cellular_allow_roaming_; |
| 111 | 117 |
| 112 DISALLOW_COPY_AND_ASSIGN(NetworkDeviceHandlerImpl); | 118 DISALLOW_COPY_AND_ASSIGN(NetworkDeviceHandlerImpl); |
| 113 }; | 119 }; |
| 114 | 120 |
| 115 } // namespace chromeos | 121 } // namespace chromeos |
| 116 | 122 |
| 117 #endif // CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_IMPL_H_ | 123 #endif // CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_IMPL_H_ |
| OLD | NEW |