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

Unified Diff: dbus/object_proxy.h

Issue 11358111: Make SignalSenderVerificationTest more robust (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix uninitialized members Created 8 years, 1 month 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/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 bec08949d75b8d86d3cfec6a81f17ac5722e3415..801c57753fb18ee3064bd21cfb9b9900dac35586 100644
--- a/dbus/object_proxy.h
+++ b/dbus/object_proxy.h
@@ -142,6 +142,11 @@ class CHROME_DBUS_EXPORT ObjectProxy
SignalCallback signal_callback,
OnConnectedCallback on_connected_callback);
+ // Sets a callback for "NameOwnerChanged" signal. The callback is called on
+ // the origin thread when D-Bus system sends "NameOwnerChanged" for the name
+ // represented by |service_name_|.
+ virtual void SetNameOwnerChangedCallback(SignalCallback callback);
+
// Detaches from the remote object. The Bus object will take care of
// detaching so you don't have to do this manually.
//
@@ -254,7 +259,7 @@ class CHROME_DBUS_EXPORT ObjectProxy
void UpdateNameOwnerAndBlock();
// Handles NameOwnerChanged signal from D-Bus's special message bus.
- DBusHandlerResult HandleNameOwnerChanged(dbus::Signal* signal);
+ DBusHandlerResult HandleNameOwnerChanged(scoped_ptr<dbus::Signal> signal);
scoped_refptr<Bus> bus_;
std::string service_name_;
@@ -268,6 +273,9 @@ class CHROME_DBUS_EXPORT ObjectProxy
typedef std::map<std::string, SignalCallback> MethodTable;
MethodTable method_table_;
+ // The callback called when NameOwnerChanged signal is received.
+ SignalCallback name_owner_changed_callback_;
+
std::set<std::string> match_rules_;
const bool ignore_service_unknown_errors_;
« no previous file with comments | « no previous file | dbus/object_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698