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

Unified Diff: dbus/test_service.h

Issue 7800023: Linux: use MessageLoopProxy instead of base::Thread in our DBus client library. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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
« no previous file with comments | « dbus/message.h ('k') | dbus/test_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/test_service.h
===================================================================
--- dbus/test_service.h (revision 99666)
+++ dbus/test_service.h (working copy)
@@ -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 @@
~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 @@
// 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_;
« no previous file with comments | « dbus/message.h ('k') | dbus/test_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698