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 #include "remoting/host/log_to_server.h" | 5 #include "remoting/host/log_to_server.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
9 #include "remoting/base/constants.h" | 9 #include "remoting/base/constants.h" |
10 #include "remoting/host/chromoting_host.h" | 10 #include "remoting/host/chromoting_host.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 } | 70 } |
71 | 71 |
72 void LogToServer::OnClientDisconnected(const std::string& jid) { | 72 void LogToServer::OnClientDisconnected(const std::string& jid) { |
73 DCHECK(CalledOnValidThread()); | 73 DCHECK(CalledOnValidThread()); |
74 LogSessionStateChange(false); | 74 LogSessionStateChange(false); |
75 } | 75 } |
76 | 76 |
77 void LogToServer::OnAccessDenied(const std::string& jid) { | 77 void LogToServer::OnAccessDenied(const std::string& jid) { |
78 } | 78 } |
79 | 79 |
| 80 void LogToServer::OnClientIpAddress(const std::string& jid, |
| 81 const std::string& channel_name, |
| 82 const net::IPEndPoint& end_point) { |
| 83 } |
| 84 |
80 void LogToServer::OnShutdown() { | 85 void LogToServer::OnShutdown() { |
81 } | 86 } |
82 | 87 |
83 void LogToServer::Log(const ServerLogEntry& entry) { | 88 void LogToServer::Log(const ServerLogEntry& entry) { |
84 pending_entries_.push_back(entry); | 89 pending_entries_.push_back(entry); |
85 SendPendingEntries(); | 90 SendPendingEntries(); |
86 } | 91 } |
87 | 92 |
88 void LogToServer::SendPendingEntries() { | 93 void LogToServer::SendPendingEntries() { |
89 if (iq_sender_ == NULL) { | 94 if (iq_sender_ == NULL) { |
(...skipping 12 matching lines...) Expand all Loading... |
102 } | 107 } |
103 // Send the stanza to the server. | 108 // Send the stanza to the server. |
104 scoped_ptr<IqRequest> req(iq_sender_->SendIq( | 109 scoped_ptr<IqRequest> req(iq_sender_->SendIq( |
105 buzz::STR_SET, kChromotingBotJid, stanza.release(), | 110 buzz::STR_SET, kChromotingBotJid, stanza.release(), |
106 IqSender::ReplyCallback())); | 111 IqSender::ReplyCallback())); |
107 // We ignore any response, so let the IqRequest be destroyed. | 112 // We ignore any response, so let the IqRequest be destroyed. |
108 return; | 113 return; |
109 } | 114 } |
110 | 115 |
111 } // namespace remoting | 116 } // namespace remoting |
OLD | NEW |