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

Unified Diff: remoting/host/posix/signal_handler.h

Issue 10905081: Pass Me2Me config via stdin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improved variable names. Created 8 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
Index: remoting/host/posix/signal_handler.h
diff --git a/remoting/host/posix/sighup_listener.h b/remoting/host/posix/signal_handler.h
similarity index 60%
rename from remoting/host/posix/sighup_listener.h
rename to remoting/host/posix/signal_handler.h
index 48140a39f9a4460bcf877dae949822ec64f2a3cb..8b26c4eb10aad137a4f354dfbdb562a859aa44dc 100644
--- a/remoting/host/posix/sighup_listener.h
+++ b/remoting/host/posix/signal_handler.h
@@ -6,17 +6,19 @@
// and trigger the specified callback. It is used on Linux and Mac in order to
// reload the me2me host configuration.
-#ifndef REMOTING_HOST_POSIX_SIGHUP_LISTENER_H_
-#define REMOTING_HOST_POSIX_SIGHUP_LISTENER_H_
+#ifndef REMOTING_HOST_POSIX_SIGNAL_HANDLER_H_
+#define REMOTING_HOST_POSIX_SIGNAL_HANDLER_H_
#include "base/callback_forward.h"
namespace remoting {
-// Register for SIGHUP notifications on the current thread, which must have
+typedef base::Callback<void(int)> SignalHandler;
+
+// Register for signal notifications on the current thread, which must have
// an associated MessageLoopForIO.
-bool RegisterHupSignalHandler(const base::Closure& callback);
+bool RegisterSignalHandler(int signal_number, const SignalHandler& handler);
} // namespace remoting
-#endif // REMOTING_HOST_POSIX_SIGHUP_LISTENER_H_
+#endif // REMOTING_HOST_POSIX_SIGNAL_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698