Chromium Code Reviews| Index: dbus/bus.h |
| diff --git a/dbus/bus.h b/dbus/bus.h |
| index 2684dcd0235f1982ae90e7ee90f72668c5dc0eba..10a3dfe11c128ee3657e90d30c3fdd05038135d8 100644 |
| --- a/dbus/bus.h |
| +++ b/dbus/bus.h |
| @@ -226,6 +226,15 @@ class Bus : public base::RefCountedThreadSafe<Bus> { |
| // Must be called in the origin thread. |
| virtual ExportedObject* GetExportedObject(const ObjectPath& object_path); |
| + // Unregisters the exported object for the given object path |object_path|. |
| + // |
| + // Getting an exported object for the same object path after this call |
| + // will return a new object, method calls on any remaining copies of the |
| + // previous object will not be called. |
| + // |
| + // BLOCKING CALL. Must be called in the origin thread. |
|
satorux1
2012/03/13 18:27:25
On what thread this function is called? For instan
keybuk
2012/03/13 18:32:41
probably the UI thread ... alternate suggestions w
satorux1
2012/03/13 18:42:01
maybe:
1) add a callback parameter to UnregisterE
keybuk
2012/03/13 18:53:31
1) there's no place to call because the destructor
satorux1
2012/03/13 18:56:36
re 2, i meant to just post tasks to d-bus thread f
|
| + virtual void UnregisterExportedObject(const ObjectPath& object_path); |
| + |
| // Shuts down the bus and blocks until it's done. More specifically, this |
| // function does the following: |
| // |
| @@ -420,6 +429,11 @@ class Bus : public base::RefCountedThreadSafe<Bus> { |
| private: |
| friend class base::RefCountedThreadSafe<Bus>; |
| + // Helper function used for UnregisterExportedObject(), |completion| is |
| + // the waitable event that allows the caller to block until complete. |
| + void UnregisterExportedObjectInternal(const ObjectPath& object_path, |
| + base::WaitableEvent* completion); |
| + |
| // Helper function used for ShutdownOnDBusThreadAndBlock(). |
| void ShutdownOnDBusThreadAndBlockInternal(); |