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

Unified Diff: chromeos/dbus/dbus_thread_manager.h

Issue 10159004: Extends DBusThreadManager to connect ibus-bus. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Apply comments. Created 8 years, 7 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: chromeos/dbus/dbus_thread_manager.h
diff --git a/chromeos/dbus/dbus_thread_manager.h b/chromeos/dbus/dbus_thread_manager.h
index fa7b108c24f4f0f52944e397cd294a5972da0b02..60a6bb82e8d28f77635cc711201a63202c6fe638 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"
@@ -84,9 +86,17 @@ class CHROMEOS_EXPORT DBusThreadManager {
// Gets the global instance. Initialize() must be called first.
static DBusThreadManager* Get();
+ // Creates new IBusBus instance to communicate with ibus-daemon with specified
+ // ibus address. Must be called before using ibus related clients.
+ // TODO(nona): Support shutdown to enable dynamical ibus-daemon shutdown.
+ virtual void InitIBusBus(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.

Powered by Google App Engine
This is Rietveld 408576698