OLD | NEW |
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 #ifndef REMOTING_HOST_CONFIG_FILE_WATCHER_H_ | 5 #ifndef REMOTING_HOST_CONFIG_FILE_WATCHER_H_ |
6 #define REMOTING_HOST_CONFIG_FILE_WATCHER_H_ | 6 #define REMOTING_HOST_CONFIG_FILE_WATCHER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 public: | 26 public: |
27 // Creates a configuration file watcher that lives at the |io_task_runner| | 27 // Creates a configuration file watcher that lives at the |io_task_runner| |
28 // thread but posts config file updates on on |main_task_runner|. | 28 // thread but posts config file updates on on |main_task_runner|. |
29 ConfigFileWatcher( | 29 ConfigFileWatcher( |
30 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 30 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
31 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, | 31 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
32 const base::FilePath& config_path); | 32 const base::FilePath& config_path); |
33 virtual ~ConfigFileWatcher(); | 33 virtual ~ConfigFileWatcher(); |
34 | 34 |
35 // Inherited from ConfigWatcher. | 35 // Inherited from ConfigWatcher. |
36 virtual void Watch(Delegate* delegate) OVERRIDE; | 36 virtual void Watch(Delegate* delegate) override; |
37 | 37 |
38 private: | 38 private: |
39 scoped_refptr<ConfigFileWatcherImpl> impl_; | 39 scoped_refptr<ConfigFileWatcherImpl> impl_; |
40 | 40 |
41 DISALLOW_COPY_AND_ASSIGN(ConfigFileWatcher); | 41 DISALLOW_COPY_AND_ASSIGN(ConfigFileWatcher); |
42 }; | 42 }; |
43 | 43 |
44 } // namespace remoting | 44 } // namespace remoting |
45 | 45 |
46 #endif // REMOTING_HOST_CONFIG_FILE_WATCHER_H_ | 46 #endif // REMOTING_HOST_CONFIG_FILE_WATCHER_H_ |
OLD | NEW |