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_DAEMON_CONFIG_WATCHER_H_ | 5 #ifndef REMOTING_HOST_DAEMON_CONFIG_WATCHER_H_ |
6 #define REMOTING_HOST_DAEMON_CONFIG_WATCHER_H_ | 6 #define REMOTING_HOST_DAEMON_CONFIG_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" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 | 12 |
13 namespace base { | 13 namespace base { |
14 class SingleThreadTaskRunner; | 14 class SingleThreadTaskRunner; |
15 } // namespace base | 15 } // namespace base |
16 | 16 |
17 namespace remoting { | 17 namespace remoting { |
18 | 18 |
19 extern const char kHostConfigSwitchName[]; | 19 namespace { |
| 20 const char kHostConfigSwitchName[] = "host-config"; |
| 21 } |
| 22 |
20 extern const base::FilePath::CharType kDefaultHostConfigFile[]; | 23 extern const base::FilePath::CharType kDefaultHostConfigFile[]; |
21 | 24 |
22 class ConfigFileWatcherImpl; | 25 class ConfigFileWatcherImpl; |
23 | 26 |
24 class ConfigFileWatcher { | 27 class ConfigFileWatcher { |
25 public: | 28 public: |
26 class Delegate { | 29 class Delegate { |
27 public: | 30 public: |
28 virtual ~Delegate(); | 31 virtual ~Delegate(); |
29 | 32 |
(...skipping 18 matching lines...) Expand all Loading... |
48 | 51 |
49 private: | 52 private: |
50 scoped_refptr<ConfigFileWatcherImpl> impl_; | 53 scoped_refptr<ConfigFileWatcherImpl> impl_; |
51 | 54 |
52 DISALLOW_COPY_AND_ASSIGN(ConfigFileWatcher); | 55 DISALLOW_COPY_AND_ASSIGN(ConfigFileWatcher); |
53 }; | 56 }; |
54 | 57 |
55 } // namespace remoting | 58 } // namespace remoting |
56 | 59 |
57 #endif // REMOTING_HOST_DAEMON_CONFIG_WATCHER_H_ | 60 #endif // REMOTING_HOST_DAEMON_CONFIG_WATCHER_H_ |
OLD | NEW |