| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef REMOTING_HOST_LINUX_CERTIFICATE_WATCHER_H_ | 5 #ifndef REMOTING_HOST_LINUX_CERTIFICATE_WATCHER_H_ |
| 6 #define REMOTING_HOST_LINUX_CERTIFICATE_WATCHER_H_ | 6 #define REMOTING_HOST_LINUX_CERTIFICATE_WATCHER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/files/file_path_watcher.h" | 11 #include "base/files/file_path_watcher.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/single_thread_task_runner.h" |
| 14 #include "base/timer/timer.h" | 15 #include "base/timer/timer.h" |
| 15 #include "remoting/host/host_status_monitor.h" | 16 #include "remoting/host/host_status_monitor.h" |
| 16 #include "remoting/host/host_status_observer.h" | 17 #include "remoting/host/host_status_observer.h" |
| 17 | 18 |
| 18 namespace remoting { | 19 namespace remoting { |
| 19 | 20 |
| 20 class CertDbContentWatcher; | 21 class CertDbContentWatcher; |
| 21 | 22 |
| 22 // This class watches the cert database and notifies the host to restart when | 23 // This class watches the cert database and notifies the host to restart when |
| 23 // a change of the database is detected. The runner script will restart the host | 24 // a change of the database is detected. The runner script will restart the host |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 base::TimeDelta delay_; | 95 base::TimeDelta delay_; |
| 95 | 96 |
| 96 base::WeakPtrFactory<CertificateWatcher> weak_factory_; | 97 base::WeakPtrFactory<CertificateWatcher> weak_factory_; |
| 97 | 98 |
| 98 DISALLOW_COPY_AND_ASSIGN(CertificateWatcher); | 99 DISALLOW_COPY_AND_ASSIGN(CertificateWatcher); |
| 99 }; | 100 }; |
| 100 | 101 |
| 101 } // namespace remoting | 102 } // namespace remoting |
| 102 | 103 |
| 103 #endif // REMOTING_HOST_LINUX_CERTIFICATE_WATCHER_H_ | 104 #endif // REMOTING_HOST_LINUX_CERTIFICATE_WATCHER_H_ |
| OLD | NEW |