OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 DBUS_OBJECT_MANAGER_H_ | 5 #ifndef DBUS_OBJECT_MANAGER_H_ |
6 #define DBUS_OBJECT_MANAGER_H_ | 6 #define DBUS_OBJECT_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 static DBusHandlerResult HandleMessageThunk(DBusConnection* connection, | 254 static DBusHandlerResult HandleMessageThunk(DBusConnection* connection, |
255 DBusMessage* raw_message, | 255 DBusMessage* raw_message, |
256 void* user_data); | 256 void* user_data); |
257 DBusHandlerResult HandleMessage(DBusConnection* connection, | 257 DBusHandlerResult HandleMessage(DBusConnection* connection, |
258 DBusMessage* raw_message); | 258 DBusMessage* raw_message); |
259 | 259 |
260 // Called when a PropertiesChanged signal is received from the sender. | 260 // Called when a PropertiesChanged signal is received from the sender. |
261 // This method notifies the relevant PropertySet that it should update its | 261 // This method notifies the relevant PropertySet that it should update its |
262 // properties based on the received signal. Called from HandleMessage. | 262 // properties based on the received signal. Called from HandleMessage. |
263 void NotifyPropertiesChanged(const dbus::ObjectPath object_path, | 263 void NotifyPropertiesChanged(const dbus::ObjectPath object_path, |
264 Signal* signal); | 264 scoped_ptr<Signal> signal); |
265 void NotifyPropertiesChangedHelper(const dbus::ObjectPath object_path, | 265 void NotifyPropertiesChangedHelper(const dbus::ObjectPath object_path, |
266 Signal* signal); | 266 Signal* signal); |
267 | 267 |
268 // Called by dbus:: in response to the GetManagedObjects() method call. | 268 // Called by dbus:: in response to the GetManagedObjects() method call. |
269 void OnGetManagedObjects(Response* response); | 269 void OnGetManagedObjects(Response* response); |
270 | 270 |
271 // Called by dbus:: when an InterfacesAdded signal is received and initially | 271 // Called by dbus:: when an InterfacesAdded signal is received and initially |
272 // connected. | 272 // connected. |
273 void InterfacesAddedReceived(Signal* signal); | 273 void InterfacesAddedReceived(Signal* signal); |
274 void InterfacesAddedConnected(const std::string& interface_name, | 274 void InterfacesAddedConnected(const std::string& interface_name, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 // Note: This should remain the last member so it'll be destroyed and | 352 // Note: This should remain the last member so it'll be destroyed and |
353 // invalidate its weak pointers before any other members are destroyed. | 353 // invalidate its weak pointers before any other members are destroyed. |
354 base::WeakPtrFactory<ObjectManager> weak_ptr_factory_; | 354 base::WeakPtrFactory<ObjectManager> weak_ptr_factory_; |
355 | 355 |
356 DISALLOW_COPY_AND_ASSIGN(ObjectManager); | 356 DISALLOW_COPY_AND_ASSIGN(ObjectManager); |
357 }; | 357 }; |
358 | 358 |
359 } // namespace dbus | 359 } // namespace dbus |
360 | 360 |
361 #endif // DBUS_OBJECT_MANAGER_H_ | 361 #endif // DBUS_OBJECT_MANAGER_H_ |
OLD | NEW |