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