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 <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
150 void RequestScan() const; | 150 void RequestScan() const; |
151 | 151 |
152 // Request a scan if not scanning and run |callback| when the Scanning state | 152 // Request a scan if not scanning and run |callback| when the Scanning state |
153 // for any Device matching |type| completes. | 153 // for any Device matching |type| completes. |
154 void WaitForScan(const std::string& type, const base::Closure& callback); | 154 void WaitForScan(const std::string& type, const base::Closure& callback); |
155 | 155 |
156 // Request a network scan then signal Shill to connect to the best available | 156 // Request a network scan then signal Shill to connect to the best available |
157 // networks when completed. | 157 // networks when completed. |
158 void ConnectToBestWifiNetwork(); | 158 void ConnectToBestWifiNetwork(); |
159 | 159 |
160 // Request an update for an existing NetworkState, e.g. after configuring | |
161 // a network. This is a no-op if an update request is already pending. | |
162 // Returns true if the network exists and an update is requested or pending. | |
163 bool RequestUpdateForNetwork(const std::string& service_path); | |
164 | |
165 // Request an update for all existing NetworkState entries, e.g. after | |
166 // loading an ONC configuration file that may have updated one more more | |
pneubeck (no reviews)
2013/05/22 08:42:40
more -> or
stevenjb
2013/05/22 16:08:23
Done.
| |
167 // existing networks. | |
168 void RequestUpdateForAllNetworks(); | |
169 | |
160 // Set the user initiated connecting network. | 170 // Set the user initiated connecting network. |
161 void SetConnectingNetwork(const std::string& service_path); | 171 void SetConnectingNetwork(const std::string& service_path); |
162 | 172 |
163 const std::string& connecting_network() const { return connecting_network_; } | 173 const std::string& connecting_network() const { return connecting_network_; } |
164 | 174 |
165 // Generates a DictionaryValue of all NetworkState properties. Currently | 175 // Generates a DictionaryValue of all NetworkState properties. Currently |
166 // provided for debugging purposes only. | 176 // provided for debugging purposes only. |
167 void GetNetworkStatePropertiesForTest( | 177 void GetNetworkStatePropertiesForTest( |
168 base::DictionaryValue* dictionary) const; | 178 base::DictionaryValue* dictionary) const; |
169 | 179 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
277 | 287 |
278 // Callbacks to run when a scan for the technology type completes. | 288 // Callbacks to run when a scan for the technology type completes. |
279 ScanCompleteCallbackMap scan_complete_callbacks_; | 289 ScanCompleteCallbackMap scan_complete_callbacks_; |
280 | 290 |
281 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); | 291 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); |
282 }; | 292 }; |
283 | 293 |
284 } // namespace chromeos | 294 } // namespace chromeos |
285 | 295 |
286 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 296 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
OLD | NEW |