summaryrefslogtreecommitdiffstats
path: root/dbus/test_service.h
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-20 01:36:53 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-20 01:36:53 +0000
commit200328ab0dcebf5869a63fb891a58c3e39768b12 (patch)
tree16325243683583f306a51c05ca0c44518b4af1b2 /dbus/test_service.h
parent044512594122e2feb1fb78bd96b59a300c98a253 (diff)
downloadchromium_src-200328ab0dcebf5869a63fb891a58c3e39768b12.zip
chromium_src-200328ab0dcebf5869a63fb891a58c3e39768b12.tar.gz
chromium_src-200328ab0dcebf5869a63fb891a58c3e39768b12.tar.bz2
DBus: Use TaskRunners instead of MessageLoopProxies.
Review URL: https://chromiumcodereview.appspot.com/12255043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183362 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus/test_service.h')
-rw-r--r--dbus/test_service.h8
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_;