Clarify and update GN build flags docs.
[chromium-blink-merge.git] / remoting / host / config_watcher.h
blob0d608c77ac6d2ce097d271ea1a43091d52e8ef10
1 // Copyright 2013 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.
5 #ifndef REMOTING_HOST_CONFIG_WATCHER_H_
6 #define REMOTING_HOST_CONFIG_WATCHER_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "base/files/file_path.h"
13 #include "base/memory/ref_counted.h"
15 namespace remoting {
17 class ConfigWatcher {
18 public:
19 class Delegate {
20 public:
21 virtual ~Delegate() {}
23 // Called once after starting watching the configuration file and every time
24 // the file changes.
25 virtual void OnConfigUpdated(const std::string& serialized_config) = 0;
27 // Called when the configuration file watcher encountered an error.
28 virtual void OnConfigWatcherError() = 0;
31 virtual void Watch(Delegate* delegate) = 0;
33 ConfigWatcher() {}
35 virtual ~ConfigWatcher() {}
36 private:
37 DISALLOW_COPY_AND_ASSIGN(ConfigWatcher);
40 } // namespace remoting
42 #endif // REMOTING_HOST_CONFIG_WATCHER_H_