// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef REMOTING_HOST_LINUX_CERTIFICATE_WATCHER_H_ #define REMOTING_HOST_LINUX_CERTIFICATE_WATCHER_H_ #include <memory> #include "base/files/file_path.h" #include "base/files/file_path_watcher.h" #include "base/memory/weak_ptr.h" #include "base/task/single_thread_task_runner.h" #include "base/time/time.h" #include "base/timer/timer.h" #include "remoting/host/host_status_monitor.h" #include "remoting/host/host_status_observer.h" namespace remoting { class CertDbContentWatcher; // This class watches the cert database and notifies the host to restart when // a change of the database is detected. The runner script will restart the host // when the host is killed then the new host will capture any new changes of the // database. // // Acceptable false positives will be caused by desktop sessions and other // external programs. // // Implements HostStatusObserver to defer restart action when the host is // connected to a client. class CertificateWatcher : public remoting::HostStatusObserver { … }; } // namespace remoting #endif // REMOTING_HOST_LINUX_CERTIFICATE_WATCHER_H_