summaryrefslogtreecommitdiffstats
path: root/dbus/test_service.h
diff options
context:
space:
mode:
authormdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-06 20:03:24 +0000
committermdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-06 20:03:24 +0000
commit56d82c9cc1ac26ded882c9b46694a8ea5142fdf5 (patch)
treee8ea07b1e72fcd78e7e1df3ec0b2febd131ea926 /dbus/test_service.h
parentb054193d71840378f471d8ba4819ef7487eac0b9 (diff)
downloadchromium_src-56d82c9cc1ac26ded882c9b46694a8ea5142fdf5.zip
chromium_src-56d82c9cc1ac26ded882c9b46694a8ea5142fdf5.tar.gz
chromium_src-56d82c9cc1ac26ded882c9b46694a8ea5142fdf5.tar.bz2
Linux: use MessageLoopProxy instead of base::Thread in our DBus client library.
This allows us to use BrowserThread::GetMessageLoopProxyForThread() to specify the DBus thread. Also do a little bit of unrelated comment cleanup. BUG=90036 Review URL: http://codereview.chromium.org/7800023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99794 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus/test_service.h')
-rw-r--r--dbus/test_service.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/dbus/test_service.h b/dbus/test_service.h
index 348aa73..f4a8a84 100644
--- a/dbus/test_service.h
+++ b/dbus/test_service.h
@@ -11,6 +11,10 @@
#include "base/threading/thread.h"
#include "base/synchronization/waitable_event.h"
+namespace base {
+class MessageLoopProxy;
+}
+
namespace dbus {
class Bus;
@@ -32,7 +36,7 @@ class TestService : public base::Thread {
~Options();
// NULL by default (i.e. don't use the D-Bus thread).
- base::Thread* dbus_thread;
+ scoped_refptr<base::MessageLoopProxy> dbus_thread_message_loop_proxy;
};
// The number of methods we'll export.
@@ -87,7 +91,7 @@ class TestService : public base::Thread {
// Returns NULL, instead of a valid Response.
Response* BrokenMethod(MethodCall* method_call);
- base::Thread* dbus_thread_;
+ scoped_refptr<base::MessageLoopProxy> dbus_thread_message_loop_proxy_;
base::WaitableEvent on_all_methods_exported_;
// The number of methods actually exported.
int num_exported_methods_;