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

Unified Diff: remoting/host/host_event_logger.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/curtaining_host_observer.cc ('k') | remoting/host/host_event_logger_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_event_logger.h
diff --git a/remoting/host/host_event_logger.h b/remoting/host/host_event_logger.h
index b039b3b5e50d9ffe634e3cb1a62dc4043c68ffea..92dd81e3c917017a50c392a966282315f34974c3 100644
--- a/remoting/host/host_event_logger.h
+++ b/remoting/host/host_event_logger.h
@@ -10,10 +10,11 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
namespace remoting {
-class ChromotingHost;
+class HostStatusMonitor;
class HostEventLogger {
public:
@@ -22,7 +23,8 @@ class HostEventLogger {
// Creates an event-logger that monitors host status changes and logs
// corresponding events to the OS-specific log (syslog/EventLog).
static scoped_ptr<HostEventLogger> Create(
- ChromotingHost* host, const std::string& application_name);
+ base::WeakPtr<HostStatusMonitor> monitor,
+ const std::string& application_name);
protected:
HostEventLogger() {}
« no previous file with comments | « remoting/host/curtaining_host_observer.cc ('k') | remoting/host/host_event_logger_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698