Index: remoting/host/host_event_logger.h |
diff --git a/remoting/host/host_event_logger.h b/remoting/host/host_event_logger.h |
index 3c92bd638f07609726ece26f48a62fb5abe462aa..b039b3b5e50d9ffe634e3cb1a62dc4043c68ffea 100644 |
--- a/remoting/host/host_event_logger.h |
+++ b/remoting/host/host_event_logger.h |
@@ -9,38 +9,25 @@ |
#include "base/basictypes.h" |
#include "base/compiler_specific.h" |
-#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
-#include "remoting/host/host_status_observer.h" |
namespace remoting { |
class ChromotingHost; |
-class SystemEventLogger; |
-class HostEventLogger : public HostStatusObserver { |
+class HostEventLogger { |
Lambros
2012/03/01 21:15:41
It's unfortunate that it has to be refactored this
alexeypa (please no reviews)
2012/03/01 22:32:41
Yes, I saw SystemEventLogger. Unfortunately it doe
|
public: |
- HostEventLogger(ChromotingHost* host, const std::string& application_name); |
- virtual ~HostEventLogger(); |
- |
- // HostStatusObserver implementation. These methods will be called from the |
- // network thread. |
- virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; |
- virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; |
- virtual void OnAccessDenied(const std::string& jid) OVERRIDE; |
- virtual void OnClientRouteChange( |
- const std::string& jid, |
- const std::string& channel_name, |
- const net::IPEndPoint& remote_end_point, |
- const net::IPEndPoint& local_end_point) OVERRIDE; |
- virtual void OnShutdown() OVERRIDE; |
+ virtual ~HostEventLogger() {} |
Jamie
2012/03/01 18:22:32
Be sure to run this by the clang bots. It has some
alexeypa (please no reviews)
2012/03/01 20:33:58
Will do.
Lambros
2012/03/01 21:15:41
Should be OK (and preferred!) for a pure interface
|
- private: |
- void Log(const std::string& message); |
+ // 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); |
- scoped_refptr<ChromotingHost> host_; |
- scoped_ptr<SystemEventLogger> system_event_logger_; |
+ protected: |
+ HostEventLogger() {} |
Lambros
2012/03/01 21:15:41
nit: Maybe get rid of this ctor, and just make the
alexeypa (please no reviews)
2012/03/01 22:32:41
It is required by the compiler and it is protected
|
+ private: |
DISALLOW_COPY_AND_ASSIGN(HostEventLogger); |
}; |