summaryrefslogtreecommitdiff
path: root/chromium/dbus/bus.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/dbus/bus.h')
-rw-r--r--chromium/dbus/bus.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chromium/dbus/bus.h b/chromium/dbus/bus.h
index f9f0dfd9cf6..27d149c4791 100644
--- a/chromium/dbus/bus.h
+++ b/chromium/dbus/bus.h
@@ -586,6 +586,10 @@ class CHROME_DBUS_EXPORT Bus : public base::RefCountedThreadSafe<Bus> {
const std::string& service_name,
const GetServiceOwnerCallback& callback);
+ // Return the unique name of the bus connnection if it is connected to
+ // D-BUS. Otherwise, return an empty string.
+ std::string GetConnectionName();
+
// Returns true if the bus is connected to D-Bus.
bool is_connected() { return connection_ != NULL; }