| 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..3ea71ac00804320f96124e93435c95e5bcff571f
|
| --- /dev/null
|
| +++ b/remoting/host/host_status_observer.h
|
| @@ -0,0 +1,28 @@
|
| +// 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:
|
| + // 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;
|
| +};
|
| +
|
| +} // namespace remoting
|
| +
|
| +#endif // REMOTING_HOST_STATUS_OBSERVER_H_
|
|
|