diff options
Diffstat (limited to 'dbus/test_service.h')
-rw-r--r-- | dbus/test_service.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dbus/test_service.h b/dbus/test_service.h index 30f8216..562e7c4 100644 --- a/dbus/test_service.h +++ b/dbus/test_service.h @@ -12,7 +12,7 @@ #include "dbus/exported_object.h" namespace base { -class MessageLoopProxy; +class SequencedTaskRunner; } namespace dbus { @@ -35,13 +35,13 @@ class TestService : public base::Thread { ~Options(); // NULL by default (i.e. don't use the D-Bus thread). - scoped_refptr<base::MessageLoopProxy> dbus_thread_message_loop_proxy; + scoped_refptr<base::SequencedTaskRunner> dbus_task_runner; }; // The number of methods we'll export. static const int kNumMethodsToExport; - TestService(const Options& options); + explicit TestService(const Options& options); virtual ~TestService(); // Starts the service in a separate thread. @@ -143,7 +143,7 @@ class TestService : public base::Thread { // Helper function for RequestOwnership(). void RequestOwnershipInternal(base::Callback<void(bool)> callback); - scoped_refptr<base::MessageLoopProxy> dbus_thread_message_loop_proxy_; + scoped_refptr<base::SequencedTaskRunner> dbus_task_runner_; base::WaitableEvent on_all_methods_exported_; // The number of methods actually exported. int num_exported_methods_; |