| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_HOST_HOST_EVENT_LOGGER_H_ | 5 #ifndef REMOTING_HOST_HOST_EVENT_LOGGER_H_ |
| 6 #define REMOTING_HOST_HOST_EVENT_LOGGER_H_ | 6 #define REMOTING_HOST_HOST_EVENT_LOGGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class HostEventLogger : public HostStatusObserver { | 21 class HostEventLogger : public HostStatusObserver { |
| 22 public: | 22 public: |
| 23 HostEventLogger(ChromotingHost* host, const std::string& application_name); | 23 HostEventLogger(ChromotingHost* host, const std::string& application_name); |
| 24 virtual ~HostEventLogger(); | 24 virtual ~HostEventLogger(); |
| 25 | 25 |
| 26 // HostStatusObserver implementation. These methods will be called from the | 26 // HostStatusObserver implementation. These methods will be called from the |
| 27 // network thread. | 27 // network thread. |
| 28 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; | 28 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; |
| 29 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; | 29 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; |
| 30 virtual void OnAccessDenied(const std::string& jid) OVERRIDE; | 30 virtual void OnAccessDenied(const std::string& jid) OVERRIDE; |
| 31 virtual void OnClientIpAddress(const std::string& jid, |
| 32 const std::string& channel_name, |
| 33 const net::IPEndPoint& end_point) OVERRIDE; |
| 31 virtual void OnShutdown() OVERRIDE; | 34 virtual void OnShutdown() OVERRIDE; |
| 32 | 35 |
| 33 private: | 36 private: |
| 34 void Log(const std::string& message); | 37 void Log(const std::string& message); |
| 35 | 38 |
| 36 scoped_refptr<ChromotingHost> host_; | 39 scoped_refptr<ChromotingHost> host_; |
| 37 scoped_ptr<SystemEventLogger> system_event_logger_; | 40 scoped_ptr<SystemEventLogger> system_event_logger_; |
| 38 | 41 |
| 39 DISALLOW_COPY_AND_ASSIGN(HostEventLogger); | 42 DISALLOW_COPY_AND_ASSIGN(HostEventLogger); |
| 40 }; | 43 }; |
| 41 | 44 |
| 42 } | 45 } |
| 43 | 46 |
| 44 #endif // REMOTING_HOST_HOST_EVENT_LOGGER_H_ | 47 #endif // REMOTING_HOST_HOST_EVENT_LOGGER_H_ |
| OLD | NEW |