| 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, | 31 virtual void OnClientIpAddress( |
| 32 const std::string& channel_name, | 32 const std::string& jid, |
| 33 const net::IPEndPoint& end_point) OVERRIDE; | 33 const std::string& channel_name, |
| 34 const net::IPEndPoint& end_point, |
| 35 const net::IPEndPoint& local_end_point) OVERRIDE; |
| 34 virtual void OnShutdown() OVERRIDE; | 36 virtual void OnShutdown() OVERRIDE; |
| 35 | 37 |
| 36 private: | 38 private: |
| 37 void Log(const std::string& message); | 39 void Log(const std::string& message); |
| 38 | 40 |
| 39 scoped_refptr<ChromotingHost> host_; | 41 scoped_refptr<ChromotingHost> host_; |
| 40 scoped_ptr<SystemEventLogger> system_event_logger_; | 42 scoped_ptr<SystemEventLogger> system_event_logger_; |
| 41 | 43 |
| 42 DISALLOW_COPY_AND_ASSIGN(HostEventLogger); | 44 DISALLOW_COPY_AND_ASSIGN(HostEventLogger); |
| 43 }; | 45 }; |
| 44 | 46 |
| 45 } | 47 } |
| 46 | 48 |
| 47 #endif // REMOTING_HOST_HOST_EVENT_LOGGER_H_ | 49 #endif // REMOTING_HOST_HOST_EVENT_LOGGER_H_ |
| OLD | NEW |