Index: chromeos/dbus/dbus_thread_manager.h |
diff --git a/chromeos/dbus/dbus_thread_manager.h b/chromeos/dbus/dbus_thread_manager.h |
index 648be053149039e0050ab9875228a38c13f5b3ae..03b2ff84feebd6a190b89256820cf97f2aa10796 100644 |
--- a/chromeos/dbus/dbus_thread_manager.h |
+++ b/chromeos/dbus/dbus_thread_manager.h |
@@ -6,6 +6,8 @@ |
#define CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
#pragma once |
+#include <string> |
+ |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
#include "chromeos/chromeos_export.h" |
@@ -81,9 +83,16 @@ class CHROMEOS_EXPORT DBusThreadManager { |
// Gets the global instance. Initialize() must be called first. |
static DBusThreadManager* Get(); |
+ // Creates IBusBus instance and connect to ibus-daemon with specified ibus |
+ // address. This function must be called once. |
+ virtual void InitializeIBusBus(const std::string &ibus_address) = 0; |
+ |
// Returns the D-Bus system bus instance, owned by DBusThreadManager. |
virtual dbus::Bus* GetSystemBus() = 0; |
+ // Returns the IBus bus instance, owned by DBusThreadManager. |
+ virtual dbus::Bus* GetIBusBus() = 0; |
+ |
// Returns the bluetooth adapter client, owned by DBusThreadManager. |
// Do not cache this pointer and use it after DBusThreadManager is shut |
// down. |