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

Unified Diff: dbus/object_manager.h

Issue 2239123002: dbus: Make Bus::GetManagedObjects skip unavailable services. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « dbus/bus.cc ('k') | dbus/object_manager.cc » ('j') | dbus/object_proxy.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/object_manager.h
diff --git a/dbus/object_manager.h b/dbus/object_manager.h
index 266b53eb9a0ac3d140d468114701af3ecad17ba9..9ec205a5886deaf47e0b5a9e9b64ed579e0f9549 100644
--- a/dbus/object_manager.h
+++ b/dbus/object_manager.h
@@ -145,7 +145,7 @@ public:
virtual ~Interface() {}
// Called by ObjectManager to create a Properties structure for the remote
- // D-Bus object identified by |object_path| and accessibile through
+ // D-Bus object identified by |object_path| and accessible through
// |object_proxy|. The D-Bus interface name |interface_name| is that passed
// to RegisterInterface() by the implementation class.
//
@@ -226,6 +226,10 @@ public:
// a need to call this manually.
void GetManagedObjects();
+ // Returns true if the service providing this object is currently available
+ // (i.e. its name has an owner).
+ bool ServiceIsAvailable();
+
// Cleans up any match rules and filter functions added by this ObjectManager.
// The Bus object will take care of this so you don't have to do it manually.
//
« no previous file with comments | « dbus/bus.cc ('k') | dbus/object_manager.cc » ('j') | dbus/object_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698