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

Side by Side 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: Reinstate and improve error handling. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/posix/sighup_listener.cc ('k') | remoting/host/posix/signal_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file implements a signal handler that is used to safely handle SIGHUP 5 // This file implements a signal handler that is used to safely handle SIGHUP
6 // and trigger the specified callback. It is used on Linux and Mac in order to 6 // and trigger the specified callback. It is used on Linux and Mac in order to
7 // reload the me2me host configuration. 7 // reload the me2me host configuration.
8 8
9 #ifndef REMOTING_HOST_POSIX_SIGHUP_LISTENER_H_ 9 #ifndef REMOTING_HOST_POSIX_SIGNAL_HANDLER_H_
10 #define REMOTING_HOST_POSIX_SIGHUP_LISTENER_H_ 10 #define REMOTING_HOST_POSIX_SIGNAL_HANDLER_H_
11 11
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 13
14 namespace remoting { 14 namespace remoting {
15 15
16 // Register for SIGHUP notifications on the current thread, which must have 16 typedef base::Callback<void(int)> SignalHandler;
17 // an associated MessageLoopForIO. 17
18 bool RegisterHupSignalHandler(const base::Closure& callback); 18 // Register for signal notifications on the current thread, which must have
19 // an associated MessageLoopForIO. Multiple calls to RegisterSignalHandler
20 // must all be made on the same thread.
21 bool RegisterSignalHandler(int signal_number, const SignalHandler& handler);
19 22
20 } // namespace remoting 23 } // namespace remoting
21 24
22 #endif // REMOTING_HOST_POSIX_SIGHUP_LISTENER_H_ 25 #endif // REMOTING_HOST_POSIX_SIGNAL_HANDLER_H_
OLDNEW
« no previous file with comments | « remoting/host/posix/sighup_listener.cc ('k') | remoting/host/posix/signal_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698