Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: chromeos/network/shill_property_handler.h

Issue 12634019: NetworkChangeNotifierChromeos: Handle IPConfig property changes on the default network (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more cleanup Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698