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

Unified Diff: remoting/host/host_status_observer.h

Issue 6911024: Add HostObserverInterface and decouple HeartbeatSender and ChromotingHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 8 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/heartbeat_sender_unittest.cc ('k') | remoting/host/simple_host_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_status_observer.h
diff --git a/remoting/host/host_status_observer.h b/remoting/host/host_status_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..dd0ae8599c06ff0117237696355e4a06d484165b
--- /dev/null
+++ b/remoting/host/host_status_observer.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2011 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_STATUS_OBSERVER_H_
+#define REMOTING_HOST_STATUS_OBSERVER_H_
+
+#include "base/memory/ref_counted.h"
+
+namespace remoting {
+
+class SignalStrategy;
+
+class HostStatusObserver
+ : public base::RefCountedThreadSafe<HostStatusObserver> {
+ public:
+ HostStatusObserver() { }
+
+ // Called on the network thread when status of the XMPP changes.
+ virtual void OnSignallingConnected(SignalStrategy* signal_strategy,
+ const std::string& full_jid) = 0;
+ virtual void OnSignallingDisconnected() = 0;
+
+ // Called on the main thread when the host shuts down.
+ virtual void OnShutdown() = 0;
+
+ protected:
+ friend class base::RefCountedThreadSafe<HostStatusObserver>;
+ virtual ~HostStatusObserver() { }
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_STATUS_OBSERVER_H_
« no previous file with comments | « remoting/host/heartbeat_sender_unittest.cc ('k') | remoting/host/simple_host_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698