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

Unified Diff: dbus/test_service.h

Issue 12255043: DBus: Use TaskRunners instead of MessageLoopProxies. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 7 years, 10 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: dbus/test_service.h
===================================================================
--- dbus/test_service.h (revision 183314)
+++ dbus/test_service.h (working copy)
@@ -12,7 +12,7 @@
#include "dbus/exported_object.h"
namespace base {
-class MessageLoopProxy;
+class SequencedTaskRunner;
}
namespace dbus {
@@ -35,13 +35,13 @@
~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 @@
// 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_;
« dbus/mock_bus.cc ('K') | « dbus/test_server.cc ('k') | dbus/test_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698