summaryrefslogtreecommitdiffstats
path: root/remoting/host/log_to_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/log_to_server.h')
-rw-r--r--remoting/host/log_to_server.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/remoting/host/log_to_server.h b/remoting/host/log_to_server.h
index e65adae..bbd920c 100644
--- a/remoting/host/log_to_server.h
+++ b/remoting/host/log_to_server.h
@@ -9,8 +9,8 @@
#include <map>
#include <string>
-#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "remoting/host/host_status_observer.h"
#include "remoting/host/server_log_entry.h"
@@ -27,7 +27,7 @@ class XmlElement;
namespace remoting {
-class ChromotingHost;
+class HostStatusMonitor;
class IqSender;
// LogToServer sends log entries to a server.
@@ -37,7 +37,7 @@ class LogToServer : public base::NonThreadSafe,
public HostStatusObserver,
public SignalStrategy::Listener {
public:
- explicit LogToServer(ChromotingHost* host,
+ explicit LogToServer(base::WeakPtr<HostStatusMonitor> monitor,
ServerLogEntry::Mode mode,
SignalStrategy* signal_strategy,
const std::string& directory_bot_jid);
@@ -65,7 +65,7 @@ class LogToServer : public base::NonThreadSafe,
void Log(const ServerLogEntry& entry);
void SendPendingEntries();
- scoped_refptr<ChromotingHost> host_;
+ base::WeakPtr<HostStatusMonitor> monitor_;
ServerLogEntry::Mode mode_;
SignalStrategy* signal_strategy_;
scoped_ptr<IqSender> iq_sender_;