Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1675)

Unified Diff: remoting/host/host_status_monitor.h

Issue 12386035: Moving host status events monitoring to a separate interface (HostStatusMonitor). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/host_event_logger_win.cc ('k') | remoting/host/host_status_monitor_fake.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_status_monitor.h
diff --git a/remoting/host/host_status_monitor.h b/remoting/host/host_status_monitor.h
new file mode 100644
index 0000000000000000000000000000000000000000..6cc80cb3c5f5eb637909d589e8b274b500e94beb
--- /dev/null
+++ b/remoting/host/host_status_monitor.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_HOST_HOST_STATUS_MONITOR_H_
+#define REMOTING_HOST_HOST_STATUS_MONITOR_H_
+
+namespace remoting {
+
+class HostStatusObserver;
+
+// Interface for registering host status observers.
+class HostStatusMonitor {
+ public:
+ virtual ~HostStatusMonitor() {}
+
+ // Add/Remove |observer| to/from the list of status observers.
+ virtual void AddStatusObserver(HostStatusObserver* observer) = 0;
+ virtual void RemoveStatusObserver(HostStatusObserver* observer) = 0;
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_HOST_STATUS_MONITOR_H_
« no previous file with comments | « remoting/host/host_event_logger_win.cc ('k') | remoting/host/host_status_monitor_fake.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698