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

Unified Diff: chrome/browser/chromeos/dbus/dbus_thread_manager.h

Issue 8334018: Move the code in libcros' chromeos_speech_synthesis.cc into Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed ScopedRunnableMethodFactory 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
Index: chrome/browser/chromeos/dbus/dbus_thread_manager.h
diff --git a/chrome/browser/chromeos/dbus/dbus_thread_manager.h b/chrome/browser/chromeos/dbus/dbus_thread_manager.h
index ffdeb7cc707632e161e1efe577d5a45af104cef1..32254034013a156cb9d1592876d8ed6e742067c6 100644
--- a/chrome/browser/chromeos/dbus/dbus_thread_manager.h
+++ b/chrome/browser/chromeos/dbus/dbus_thread_manager.h
@@ -23,6 +23,7 @@ class CrosDBusService;
class PowerManagerClient;
class SessionManagerClient;
class SensorsSource;
+class SpeechSynthesizerClient;
// DBusThreadManager manages the D-Bus thread, the thread dedicated to
// handling asynchronous D-Bus operations.
@@ -73,6 +74,13 @@ class DBusThreadManager {
void set_session_manager_client_for_testing(
SessionManagerClient* session_manager_client);
+ // Returns the speech synthesizer client, owned by DBusThreadManager.
+ // Do not cache this pointer and use it after DBusThreadManager is shut
+ // down.
+ SpeechSynthesizerClient* speech_synthesizer_client() {
+ return speech_synthesizer_client_.get();
+ }
+
private:
DBusThreadManager();
virtual ~DBusThreadManager();
@@ -83,6 +91,7 @@ class DBusThreadManager {
scoped_ptr<SensorsSource> sensors_source_;
scoped_ptr<PowerManagerClient> power_manager_client_;
scoped_ptr<SessionManagerClient> session_manager_client_;
+ scoped_ptr<SpeechSynthesizerClient> speech_synthesizer_client_;
DISALLOW_COPY_AND_ASSIGN(DBusThreadManager);
};
« no previous file with comments | « chrome/browser/chromeos/cros/speech_synthesis_library.cc ('k') | chrome/browser/chromeos/dbus/dbus_thread_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698