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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 // Calls Manager.ConnectToBestServices(). | 131 // Calls Manager.ConnectToBestServices(). |
132 void ConnectToBestServices() const; | 132 void ConnectToBestServices() const; |
133 | 133 |
134 // Requests all properties for the service or device (called for new items). | 134 // Requests all properties for the service or device (called for new items). |
135 void RequestProperties(ManagedState::ManagedType type, | 135 void RequestProperties(ManagedState::ManagedType type, |
136 const std::string& path); | 136 const std::string& path); |
137 | 137 |
138 // ShillPropertyChangedObserver overrides | 138 // ShillPropertyChangedObserver overrides |
139 virtual void OnPropertyChanged(const std::string& key, | 139 virtual void OnPropertyChanged(const std::string& key, |
140 const base::Value& value) OVERRIDE; | 140 const base::Value& value) override; |
141 | 141 |
142 private: | 142 private: |
143 typedef std::map<ManagedState::ManagedType, std::set<std::string> > | 143 typedef std::map<ManagedState::ManagedType, std::set<std::string> > |
144 TypeRequestMap; | 144 TypeRequestMap; |
145 | 145 |
146 // Callback for dbus method fetching properties. | 146 // Callback for dbus method fetching properties. |
147 void ManagerPropertiesCallback(DBusMethodCallStatus call_status, | 147 void ManagerPropertiesCallback(DBusMethodCallStatus call_status, |
148 const base::DictionaryValue& properties); | 148 const base::DictionaryValue& properties); |
149 | 149 |
150 // Notifies the listener when a ManagedStateList has changed and all pending | 150 // Notifies the listener when a ManagedStateList has changed and all pending |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 std::set<std::string> enabling_technologies_; | 238 std::set<std::string> enabling_technologies_; |
239 std::set<std::string> uninitialized_technologies_; | 239 std::set<std::string> uninitialized_technologies_; |
240 | 240 |
241 DISALLOW_COPY_AND_ASSIGN(ShillPropertyHandler); | 241 DISALLOW_COPY_AND_ASSIGN(ShillPropertyHandler); |
242 }; | 242 }; |
243 | 243 |
244 } // namespace internal | 244 } // namespace internal |
245 } // namespace chromeos | 245 } // namespace chromeos |
246 | 246 |
247 #endif // CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_ | 247 #endif // CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_ |
OLD | NEW |