blob: dd0ae8599c06ff0117237696355e4a06d484165b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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_
|