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

Side by Side 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, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 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.
4
5 #ifndef REMOTING_HOST_STATUS_OBSERVER_H_
6 #define REMOTING_HOST_STATUS_OBSERVER_H_
7
8 #include "base/memory/ref_counted.h"
9
10 namespace remoting {
11
12 class SignalStrategy;
13
14 class HostStatusObserver
15 : public base::RefCountedThreadSafe<HostStatusObserver> {
16 public:
17 // Called on the network thread when status of the XMPP changes.
18 virtual void OnSignallingConnected(SignalStrategy* signal_strategy,
19 const std::string& full_jid) = 0;
20 virtual void OnSignallingDisconnected() = 0;
21
22 // Called on the main thread when the host shuts down.
23 virtual void OnShutdown() = 0;
24 };
25
26 } // namespace remoting
27
28 #endif // REMOTING_HOST_STATUS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698