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