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

Unified Diff: dbus/test_service.h

Issue 11199007: Add sender verification of D-Bus signals. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove unnecessary code. Created 8 years, 2 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
diff --git a/dbus/test_service.h b/dbus/test_service.h
index 871aed6a485d7b015251a225caa075ae73a875ff..17f27ca133aa01c3700425748889d0b5892594fc 100644
--- a/dbus/test_service.h
+++ b/dbus/test_service.h
@@ -65,6 +65,9 @@ class TestService : public base::Thread {
// This function emulates dbus-send's behavior.
void SendTestSignalFromRoot(const std::string& message);
+ // Request the ownership of a well-known name "TestService".
+ void RequestOwnership();
+
private:
// Helper function for SendTestSignal().
void SendTestSignalInternal(const std::string& message);
@@ -127,6 +130,9 @@ class TestService : public base::Thread {
// Helper function for SendPropertyChangedSignal().
void SendPropertyChangedSignalInternal(const std::string& name);
+ // Helper function for RequestOwnership().
+ void RequestOwnershipInternal();
+
scoped_refptr<base::MessageLoopProxy> dbus_thread_message_loop_proxy_;
base::WaitableEvent on_all_methods_exported_;
// The number of methods actually exported.

Powered by Google App Engine
This is Rietveld 408576698