| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_IPC_HOST_EVENT_LOGGER_H_ | 5 #ifndef REMOTING_HOST_IPC_HOST_EVENT_LOGGER_H_ |
| 6 #define REMOTING_HOST_IPC_HOST_EVENT_LOGGER_H_ | 6 #define REMOTING_HOST_IPC_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 16 matching lines...) Expand all Loading... |
| 27 : public base::NonThreadSafe, | 27 : public base::NonThreadSafe, |
| 28 public HostEventLogger, | 28 public HostEventLogger, |
| 29 public HostStatusObserver { | 29 public HostStatusObserver { |
| 30 public: | 30 public: |
| 31 // Initializes the logger. |daemon_channel| must outlive this object. | 31 // Initializes the logger. |daemon_channel| must outlive this object. |
| 32 IpcHostEventLogger(base::WeakPtr<HostStatusMonitor> monitor, | 32 IpcHostEventLogger(base::WeakPtr<HostStatusMonitor> monitor, |
| 33 IPC::Sender* daemon_channel); | 33 IPC::Sender* daemon_channel); |
| 34 virtual ~IpcHostEventLogger(); | 34 virtual ~IpcHostEventLogger(); |
| 35 | 35 |
| 36 // HostStatusObserver interface. | 36 // HostStatusObserver interface. |
| 37 virtual void OnAccessDenied(const std::string& jid) OVERRIDE; | 37 virtual void OnAccessDenied(const std::string& jid) override; |
| 38 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; | 38 virtual void OnClientAuthenticated(const std::string& jid) override; |
| 39 virtual void OnClientConnected(const std::string& jid) OVERRIDE; | 39 virtual void OnClientConnected(const std::string& jid) override; |
| 40 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; | 40 virtual void OnClientDisconnected(const std::string& jid) override; |
| 41 virtual void OnClientRouteChange( | 41 virtual void OnClientRouteChange( |
| 42 const std::string& jid, | 42 const std::string& jid, |
| 43 const std::string& channel_name, | 43 const std::string& channel_name, |
| 44 const protocol::TransportRoute& route) OVERRIDE; | 44 const protocol::TransportRoute& route) override; |
| 45 virtual void OnStart(const std::string& xmpp_login) OVERRIDE; | 45 virtual void OnStart(const std::string& xmpp_login) override; |
| 46 virtual void OnShutdown() OVERRIDE; | 46 virtual void OnShutdown() override; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 // Used to report host status events to the daemon. | 49 // Used to report host status events to the daemon. |
| 50 IPC::Sender* daemon_channel_; | 50 IPC::Sender* daemon_channel_; |
| 51 | 51 |
| 52 base::WeakPtr<HostStatusMonitor> monitor_; | 52 base::WeakPtr<HostStatusMonitor> monitor_; |
| 53 | 53 |
| 54 DISALLOW_COPY_AND_ASSIGN(IpcHostEventLogger); | 54 DISALLOW_COPY_AND_ASSIGN(IpcHostEventLogger); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } | 57 } |
| 58 | 58 |
| 59 #endif // REMOTING_HOST_IPC_HOST_EVENT_LOGGER_H_ | 59 #endif // REMOTING_HOST_IPC_HOST_EVENT_LOGGER_H_ |
| OLD | NEW |