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_
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"
21 virtual ~Delegate() {}
23 // Called once after starting watching the configuration file and every time
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;
35 virtual ~ConfigWatcher() {}
37 DISALLOW_COPY_AND_ASSIGN(ConfigWatcher
);
40 } // namespace remoting
42 #endif // REMOTING_HOST_CONFIG_WATCHER_H_