| 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/chromoting_host.h" | 5 #include "remoting/host/chromoting_host.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 256 |
| 257 if (client->is_authenticated()) { | 257 if (client->is_authenticated()) { |
| 258 FOR_EACH_OBSERVER(HostStatusObserver, status_observers_, | 258 FOR_EACH_OBSERVER(HostStatusObserver, status_observers_, |
| 259 OnClientDisconnected(client->client_jid())); | 259 OnClientDisconnected(client->client_jid())); |
| 260 } | 260 } |
| 261 | 261 |
| 262 clients_.erase(it); | 262 clients_.erase(it); |
| 263 delete client; | 263 delete client; |
| 264 } | 264 } |
| 265 | 265 |
| 266 void ChromotingHost::OnSessionSequenceNumber(ClientSession* session, | |
| 267 int64 sequence_number) { | |
| 268 DCHECK(CalledOnValidThread()); | |
| 269 } | |
| 270 | |
| 271 void ChromotingHost::OnSessionRouteChange( | 266 void ChromotingHost::OnSessionRouteChange( |
| 272 ClientSession* session, | 267 ClientSession* session, |
| 273 const std::string& channel_name, | 268 const std::string& channel_name, |
| 274 const protocol::TransportRoute& route) { | 269 const protocol::TransportRoute& route) { |
| 275 DCHECK(CalledOnValidThread()); | 270 DCHECK(CalledOnValidThread()); |
| 276 FOR_EACH_OBSERVER(HostStatusObserver, status_observers_, | 271 FOR_EACH_OBSERVER(HostStatusObserver, status_observers_, |
| 277 OnClientRouteChange(session->client_jid(), channel_name, | 272 OnClientRouteChange(session->client_jid(), channel_name, |
| 278 route)); | 273 route)); |
| 279 } | 274 } |
| 280 | 275 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 DCHECK(CalledOnValidThread()); | 347 DCHECK(CalledOnValidThread()); |
| 353 | 348 |
| 354 while (!clients_.empty()) { | 349 while (!clients_.empty()) { |
| 355 size_t size = clients_.size(); | 350 size_t size = clients_.size(); |
| 356 clients_.front()->DisconnectSession(); | 351 clients_.front()->DisconnectSession(); |
| 357 CHECK_EQ(clients_.size(), size - 1); | 352 CHECK_EQ(clients_.size(), size - 1); |
| 358 } | 353 } |
| 359 } | 354 } |
| 360 | 355 |
| 361 } // namespace remoting | 356 } // namespace remoting |
| OLD | NEW |