| Index: dbus/bus.h
|
| diff --git a/dbus/bus.h b/dbus/bus.h
|
| index e6a9b20096a29e710e37dbeee82effe45d477a95..e32503f653d863c7899791adfe071310a2d1154e 100644
|
| --- a/dbus/bus.h
|
| +++ b/dbus/bus.h
|
| @@ -534,6 +534,9 @@ class CHROME_DBUS_EXPORT Bus : public base::RefCountedThreadSafe<Bus> {
|
| void OnDispatchStatusChanged(DBusConnection* connection,
|
| DBusDispatchStatus status);
|
|
|
| + // Called when the connection is diconnected.
|
| + void OnConnectionDisconnected(DBusConnection* connection);
|
| +
|
| // Callback helper functions. Redirects to the corresponding member function.
|
| static dbus_bool_t OnAddWatchThunk(DBusWatch* raw_watch, void* data);
|
| static void OnRemoveWatchThunk(DBusWatch* raw_watch, void* data);
|
| @@ -544,6 +547,13 @@ class CHROME_DBUS_EXPORT Bus : public base::RefCountedThreadSafe<Bus> {
|
| static void OnDispatchStatusChangedThunk(DBusConnection* connection,
|
| DBusDispatchStatus status,
|
| void* data);
|
| +
|
| + // Calls OnConnectionDisconnected if the Diconnected signal is received.
|
| + static DBusHandlerResult OnConnectionDisconnectedFilter(
|
| + DBusConnection *connection,
|
| + DBusMessage *message,
|
| + void *user_data);
|
| +
|
| const BusType bus_type_;
|
| const ConnectionType connection_type_;
|
| scoped_refptr<base::MessageLoopProxy> dbus_thread_message_loop_proxy_;
|
|
|