| 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_SHILL_PROPERTY_HANDLER_H_ | 5 #ifndef CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_ |
| 6 #define CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // Called when a property for a watched device has changed. | 65 // Called when a property for a watched device has changed. |
| 66 virtual void UpdateDeviceProperty( | 66 virtual void UpdateDeviceProperty( |
| 67 const std::string& device_path, | 67 const std::string& device_path, |
| 68 const std::string& key, | 68 const std::string& key, |
| 69 const base::Value& value) = 0; | 69 const base::Value& value) = 0; |
| 70 | 70 |
| 71 // Called when one or more manager properties (e.g. a technology list) | 71 // Called when one or more manager properties (e.g. a technology list) |
| 72 // changes. | 72 // changes. |
| 73 virtual void ManagerPropertyChanged() = 0; | 73 virtual void ManagerPropertyChanged() = 0; |
| 74 | 74 |
| 75 // Called whent the IP address of a service has been updated. Occurs after | |
| 76 // UpdateManagedStateProperties is called for the service. | |
| 77 virtual void UpdateNetworkServiceIPAddress( | |
| 78 const std::string& service_path, | |
| 79 const std::string& ip_address) = 0; | |
| 80 | |
| 81 // Called when a managed state list has changed, after properties for any | 75 // Called when a managed state list has changed, after properties for any |
| 82 // new entries in the list have been received and | 76 // new entries in the list have been received and |
| 83 // UpdateManagedStateProperties has been called for each new entry. | 77 // UpdateManagedStateProperties has been called for each new entry. |
| 84 virtual void ManagedStateListChanged(ManagedState::ManagedType type) = 0; | 78 virtual void ManagedStateListChanged(ManagedState::ManagedType type) = 0; |
| 85 | 79 |
| 86 protected: | 80 protected: |
| 87 virtual ~Listener() {} | 81 virtual ~Listener() {} |
| 88 }; | 82 }; |
| 89 | 83 |
| 90 explicit ShillPropertyHandler(Listener* listener); | 84 explicit ShillPropertyHandler(Listener* listener); |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 std::set<std::string> enabled_technologies_; | 182 std::set<std::string> enabled_technologies_; |
| 189 std::set<std::string> uninitialized_technologies_; | 183 std::set<std::string> uninitialized_technologies_; |
| 190 | 184 |
| 191 DISALLOW_COPY_AND_ASSIGN(ShillPropertyHandler); | 185 DISALLOW_COPY_AND_ASSIGN(ShillPropertyHandler); |
| 192 }; | 186 }; |
| 193 | 187 |
| 194 } // namespace internal | 188 } // namespace internal |
| 195 } // namespace chromeos | 189 } // namespace chromeos |
| 196 | 190 |
| 197 #endif // CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_ | 191 #endif // CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_ |
| OLD | NEW |