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

Unified Diff: dbus/bus.h

Issue 14985008: dbus: adding PostTaskToDBusThreadAndReply (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove a blank line. Created 7 years, 7 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 | « no previous file | dbus/bus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/bus.h
diff --git a/dbus/bus.h b/dbus/bus.h
index 5cf73acd01ab856bddd64136c6a7c09d64fc2daa..03e2aa57a0a0ed79b2162083dda1492a94fb04db 100644
--- a/dbus/bus.h
+++ b/dbus/bus.h
@@ -511,6 +511,13 @@ class CHROME_DBUS_EXPORT Bus : public base::RefCountedThreadSafe<Bus> {
// BLOCKING CALL.
virtual void UnregisterObjectPath(const ObjectPath& object_path);
+ // Posts |task| to the task runner of the D-Bus thread. On completion, |reply|
+ // is posted to the origin thread.
+ virtual void PostTaskToDBusThreadAndReply(
+ const tracked_objects::Location& from_here,
+ const base::Closure& task,
+ const base::Closure& reply);
+
// Posts the task to the task runner of the thread that created the bus.
virtual void PostTaskToOriginThread(
const tracked_objects::Location& from_here,
« no previous file with comments | « no previous file | dbus/bus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698