Update SplitString calls to new form
[chromium-blink-merge.git] / remoting / host / posix / signal_handler.h
blobcaf89efb567d69aa312385f516f2504da7cdd641
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
3 // found in the LICENSE file.
4 //
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
7 // reload the me2me host configuration.
9 #ifndef REMOTING_HOST_POSIX_SIGNAL_HANDLER_H_
10 #define REMOTING_HOST_POSIX_SIGNAL_HANDLER_H_
12 #include "base/callback_forward.h"
14 namespace remoting {
16 typedef base::Callback<void(int)> SignalHandler;
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);
23 } // namespace remoting
25 #endif // REMOTING_HOST_POSIX_SIGNAL_HANDLER_H_