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 CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
222 // AddTetherNetworkState. Returns whether the update was successful. | 222 // AddTetherNetworkState. Returns whether the update was successful. |
223 bool UpdateTetherNetworkProperties(const std::string& guid, | 223 bool UpdateTetherNetworkProperties(const std::string& guid, |
224 const std::string& carrier, | 224 const std::string& carrier, |
225 int battery_percentage, | 225 int battery_percentage, |
226 int signal_strength); | 226 int signal_strength); |
227 | 227 |
228 // Remove a Tether NetworkState, using the same |guid| passed to | 228 // Remove a Tether NetworkState, using the same |guid| passed to |
229 // AddTetherNetworkState. | 229 // AddTetherNetworkState. |
230 void RemoveTetherNetworkState(const std::string& guid); | 230 void RemoveTetherNetworkState(const std::string& guid); |
231 | 231 |
232 // Dissociate the Tether network specified by |guid| with its associated | |
Kyle Horimoto
2017/05/01 17:09:27
Disassociate
lesliewatkins
2017/05/03 01:23:23
Done.
| |
233 // Wi-Fi network. Return the iterator for that Tether network so that it | |
Kyle Horimoto
2017/05/01 17:09:27
Just return a success bool. The client can call Re
lesliewatkins
2017/05/03 01:23:23
Done.
| |
234 // can be removed entirely if needed. | |
235 ManagedStateList::iterator DisassociateTetherNetworkStateWithWifiNetwork( | |
236 const std::string& guid); | |
237 | |
232 // Inform NetworkStateHandler that the provided Tether network with the | 238 // Inform NetworkStateHandler that the provided Tether network with the |
233 // provided guid |tether_network_guid| is associated with the Wi-Fi network | 239 // provided guid |tether_network_guid| is associated with the Wi-Fi network |
234 // with the provided guid |wifi_network_guid|. This Wi-Fi network can now be | 240 // with the provided guid |wifi_network_guid|. This Wi-Fi network can now be |
235 // hidden in the UI, and the Tether network will act as its proxy. Returns | 241 // hidden in the UI, and the Tether network will act as its proxy. Returns |
236 // false if the association failed (e.g., one or both networks don't exist). | 242 // false if the association failed (e.g., one or both networks don't exist). |
237 bool AssociateTetherNetworkStateWithWifiNetwork( | 243 bool AssociateTetherNetworkStateWithWifiNetwork( |
238 const std::string& tether_network_guid, | 244 const std::string& tether_network_guid, |
239 const std::string& wifi_network_guid); | 245 const std::string& wifi_network_guid); |
240 | 246 |
241 // Set the connection_state of the Tether NetworkState corresponding to the | 247 // Set the connection_state of the Tether NetworkState corresponding to the |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
507 | 513 |
508 // Ensure that Shutdown() gets called exactly once. | 514 // Ensure that Shutdown() gets called exactly once. |
509 bool did_shutdown_ = false; | 515 bool did_shutdown_ = false; |
510 | 516 |
511 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); | 517 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); |
512 }; | 518 }; |
513 | 519 |
514 } // namespace chromeos | 520 } // namespace chromeos |
515 | 521 |
516 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 522 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
OLD | NEW |