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

Unified Diff: dbus/object_proxy.h

Issue 14333009: D-Bus: allow multiple signal handlers for a signal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/end_to_end_async_unittest.cc ('k') | dbus/object_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/object_proxy.h
diff --git a/dbus/object_proxy.h b/dbus/object_proxy.h
index 23c0f4ce76055f225225bb44032a1b635554ef38..44652d63d218e75109b49dad1b3841e90fc3ec1e 100644
--- a/dbus/object_proxy.h
+++ b/dbus/object_proxy.h
@@ -10,6 +10,7 @@
#include <map>
#include <set>
#include <string>
+#include <vector>
#include "base/callback.h"
#include "base/memory/ref_counted.h"
@@ -222,7 +223,7 @@ class CHROME_DBUS_EXPORT ObjectProxy
// Runs the method. Helper function for HandleMessage().
void RunMethod(base::TimeTicks start_time,
- SignalCallback signal_callback,
+ std::vector<SignalCallback> signal_callbacks,
Signal* signal);
// Redirects the function call to HandleMessage().
@@ -268,8 +269,8 @@ class CHROME_DBUS_EXPORT ObjectProxy
bool filter_added_;
// The method table where keys are absolute signal names (i.e. interface
- // name + signal name), and values are the corresponding callbacks.
- typedef std::map<std::string, SignalCallback> MethodTable;
+ // name + signal name), and values are lists of the corresponding callbacks.
+ typedef std::map<std::string, std::vector<SignalCallback> > MethodTable;
MethodTable method_table_;
// The callback called when NameOwnerChanged signal is received.
« no previous file with comments | « dbus/end_to_end_async_unittest.cc ('k') | dbus/object_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698