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

Unified Diff: remoting/host/curtaining_host_observer.h

Issue 12386035: Moving host status events monitoring to a separate interface (HostStatusMonitor). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 10 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/chromoting_host.cc ('k') | remoting/host/curtaining_host_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
};
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/host/curtaining_host_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698