summaryrefslogtreecommitdiffstats
path: root/remoting/host/host_event_logger.h
diff options
context:
space:
mode:
authoralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-02 16:51:45 +0000
committeralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-02 16:51:45 +0000
commit01d0ea20ccb6ac0222b1e3bfaf9b9be19e70e5f9 (patch)
tree70d57e6f6c5ac8bd2ac4eb99c72294761f019309 /remoting/host/host_event_logger.h
parent84ab0c46e5a99761c7ba20eb7c01d21552753f99 (diff)
downloadchromium_src-01d0ea20ccb6ac0222b1e3bfaf9b9be19e70e5f9.zip
chromium_src-01d0ea20ccb6ac0222b1e3bfaf9b9be19e70e5f9.tar.gz
chromium_src-01d0ea20ccb6ac0222b1e3bfaf9b9be19e70e5f9.tar.bz2
Making the me2me host compiling and running on Windows. This includes making it a window application and converting syslog to EventLog.
Review URL: http://codereview.chromium.org/9567010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124667 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/host_event_logger.h')
-rw-r--r--remoting/host/host_event_logger.h31
1 files changed, 9 insertions, 22 deletions
diff --git a/remoting/host/host_event_logger.h b/remoting/host/host_event_logger.h
index 3c92bd6..b039b3b 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 {
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() {}
- 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() {}
+ private:
DISALLOW_COPY_AND_ASSIGN(HostEventLogger);
};