| 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_LOG_TO_SERVER_H_ | 5 #ifndef REMOTING_HOST_LOG_TO_SERVER_H_ |
| 6 #define REMOTING_HOST_LOG_TO_SERVER_H_ | 6 #define REMOTING_HOST_LOG_TO_SERVER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // connection or disconnection. | 42 // connection or disconnection. |
| 43 void LogSessionStateChange(bool connected); | 43 void LogSessionStateChange(bool connected); |
| 44 | 44 |
| 45 // SignalStrategy::Listener interface. | 45 // SignalStrategy::Listener interface. |
| 46 virtual void OnSignalStrategyStateChange( | 46 virtual void OnSignalStrategyStateChange( |
| 47 SignalStrategy::State state) OVERRIDE; | 47 SignalStrategy::State state) OVERRIDE; |
| 48 | 48 |
| 49 // HostStatusObserver interface. | 49 // HostStatusObserver interface. |
| 50 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; | 50 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; |
| 51 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; | 51 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; |
| 52 virtual void OnAccessDenied() OVERRIDE; | 52 virtual void OnAccessDenied(const std::string& jid) OVERRIDE; |
| 53 virtual void OnShutdown() OVERRIDE; | 53 virtual void OnShutdown() OVERRIDE; |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 void Log(const ServerLogEntry& entry); | 56 void Log(const ServerLogEntry& entry); |
| 57 void SendPendingEntries(); | 57 void SendPendingEntries(); |
| 58 | 58 |
| 59 scoped_refptr<ChromotingHost> host_; | 59 scoped_refptr<ChromotingHost> host_; |
| 60 SignalStrategy* signal_strategy_; | 60 SignalStrategy* signal_strategy_; |
| 61 scoped_ptr<IqSender> iq_sender_; | 61 scoped_ptr<IqSender> iq_sender_; |
| 62 std::deque<ServerLogEntry> pending_entries_; | 62 std::deque<ServerLogEntry> pending_entries_; |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(LogToServer); | 64 DISALLOW_COPY_AND_ASSIGN(LogToServer); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace remoting | 67 } // namespace remoting |
| 68 | 68 |
| 69 #endif // REMOTING_HOST_LOG_TO_SERVER_H_ | 69 #endif // REMOTING_HOST_LOG_TO_SERVER_H_ |
| OLD | NEW |