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

Unified Diff: dbus/bus.h

Issue 8175009: Eliminate a timed wait from ExportedObject::HandleMessage(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | « no previous file | 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 3d64a088f176237fd01fd4544de2d3291e3b1ad9..d8d077d27060e68d8029d62b48f96d847bda3f8a 100644
--- a/dbus/bus.h
+++ b/dbus/bus.h
@@ -383,6 +383,9 @@ class Bus : public base::RefCountedThreadSafe<Bus> {
// AssertOnOriginThread().
virtual void AssertOnDBusThread();
+ // Returns true if the bus is connected to D-Bus.
+ bool is_connected() { return connection_ != NULL; }
+
protected:
// This is protected, so we can define sub classes.
virtual ~Bus();
« no previous file with comments | « no previous file | dbus/bus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698