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

Unified Diff: dbus/bus.h

Issue 9691025: dbus: allow unregistering of exported objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update doc from nit Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/dbus/bluetooth_agent_service_provider.cc ('k') | dbus/bus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/bus.h
diff --git a/dbus/bus.h b/dbus/bus.h
index 2684dcd0235f1982ae90e7ee90f72668c5dc0eba..8e3ceea43041f9a855864744aa19d4a7aef1c30b 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.
+ //
+ // Must be called in the origin thread.
+ 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,10 @@ class Bus : public base::RefCountedThreadSafe<Bus> {
private:
friend class base::RefCountedThreadSafe<Bus>;
+ // Helper function used for UnregisterExportedObject().
+ void UnregisterExportedObjectInternal(
+ scoped_refptr<dbus::ExportedObject> exported_object);
+
// Helper function used for ShutdownOnDBusThreadAndBlock().
void ShutdownOnDBusThreadAndBlockInternal();
« no previous file with comments | « chrome/browser/chromeos/dbus/bluetooth_agent_service_provider.cc ('k') | dbus/bus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698