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

Unified Diff: dbus/object_proxy.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
Index: dbus/object_proxy.h
diff --git a/dbus/object_proxy.h b/dbus/object_proxy.h
index 033e88608a095234d568eb559f09471ef0fa0b00..7747374c58a23a4f1a496aa8732c82fd2f046a25 100644
--- a/dbus/object_proxy.h
+++ b/dbus/object_proxy.h
@@ -178,6 +178,9 @@ class CHROME_DBUS_EXPORT ObjectProxy
virtual void WaitForServiceToBeAvailable(
WaitForServiceToBeAvailableCallback callback);
+ // Returns true if the service is available (i.e. its name has an owner).
+ virtual bool ServiceIsAvailable();
+
// Detaches from the remote object. The Bus object will take care of
// detaching so you don't have to do this manually.
//
« no previous file with comments | « dbus/object_manager.cc ('k') | dbus/object_proxy.cc » ('j') | dbus/object_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698