Chromium Code Reviews| 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 344 | 344 |
| 345 // Helper function to notify observers. Calls CheckDefaultNetworkChanged(). | 345 // Helper function to notify observers. Calls CheckDefaultNetworkChanged(). |
| 346 void OnNetworkConnectionStateChanged(NetworkState* network); | 346 void OnNetworkConnectionStateChanged(NetworkState* network); |
| 347 | 347 |
| 348 // Notifies observers when the default network or its properties change. | 348 // Notifies observers when the default network or its properties change. |
| 349 void NotifyDefaultNetworkChanged(const NetworkState* default_network); | 349 void NotifyDefaultNetworkChanged(const NetworkState* default_network); |
| 350 | 350 |
| 351 // Notifies observers about changes to |network|. | 351 // Notifies observers about changes to |network|. |
| 352 void NotifyNetworkPropertiesUpdated(const NetworkState* network); | 352 void NotifyNetworkPropertiesUpdated(const NetworkState* network); |
| 353 | 353 |
| 354 // Notifies observers about changes to |device|. | |
|
pneubeck (no reviews)
2014/07/16 20:29:48
Sounds like all changes should trigger notificatio
stevenjb
2014/07/16 20:51:33
It's likely going to be redundant since the networ
| |
| 355 void NotifyDevicePropertiesUpdated(const DeviceState* device); | |
| 356 | |
| 354 // Called whenever Device.Scanning state transitions to false. | 357 // Called whenever Device.Scanning state transitions to false. |
| 355 void ScanCompleted(const std::string& type); | 358 void ScanCompleted(const std::string& type); |
| 356 | 359 |
| 357 // Returns one technology type for |type|. This technology will be the | 360 // Returns one technology type for |type|. This technology will be the |
| 358 // highest priority technology in the type pattern. | 361 // highest priority technology in the type pattern. |
| 359 std::string GetTechnologyForType(const NetworkTypePattern& type) const; | 362 std::string GetTechnologyForType(const NetworkTypePattern& type) const; |
| 360 | 363 |
| 361 // Returns all the technology types for |type|. | 364 // Returns all the technology types for |type|. |
| 362 ScopedVector<std::string> GetTechnologiesForType( | 365 ScopedVector<std::string> GetTechnologiesForType( |
| 363 const NetworkTypePattern& type) const; | 366 const NetworkTypePattern& type) const; |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 390 // Map of network specifiers to guids. Contains an entry for each | 393 // Map of network specifiers to guids. Contains an entry for each |
| 391 // NetworkState that is not saved in a profile. | 394 // NetworkState that is not saved in a profile. |
| 392 SpecifierGuidMap specifier_guid_map_; | 395 SpecifierGuidMap specifier_guid_map_; |
| 393 | 396 |
| 394 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); | 397 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); |
| 395 }; | 398 }; |
| 396 | 399 |
| 397 } // namespace chromeos | 400 } // namespace chromeos |
| 398 | 401 |
| 399 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 402 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
| OLD | NEW |