| Index: remoting/host/curtaining_host_observer.h
|
| diff --git a/remoting/host/curtaining_host_observer.h b/remoting/host/curtaining_host_observer.h
|
| index a952344a4265304eba43ae2a1e91430b730ffebc..20771f4a387a9ad6978b7c7541a3b73b3e769786 100644
|
| --- a/remoting/host/curtaining_host_observer.h
|
| +++ b/remoting/host/curtaining_host_observer.h
|
| @@ -10,19 +10,19 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| -#include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| +#include "base/memory/weak_ptr.h"
|
| #include "remoting/host/host_status_observer.h"
|
|
|
| namespace remoting {
|
|
|
| class CurtainMode;
|
| -class ChromotingHost;
|
| +class HostStatusMonitor;
|
|
|
| class CurtainingHostObserver : public HostStatusObserver {
|
| public:
|
| CurtainingHostObserver(CurtainMode *curtain,
|
| - scoped_refptr<ChromotingHost> host);
|
| + base::WeakPtr<HostStatusMonitor> monitor);
|
| virtual ~CurtainingHostObserver();
|
|
|
| // Enables/disables curtaining when one or more clients are connected.
|
| @@ -35,7 +35,7 @@ class CurtainingHostObserver : public HostStatusObserver {
|
|
|
| private:
|
| CurtainMode* curtain_;
|
| - scoped_refptr<ChromotingHost> host_;
|
| + base::WeakPtr<HostStatusMonitor> monitor_;
|
| std::set<std::string> active_clients_;
|
| bool enable_curtaining_;
|
| };
|
|
|