| 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 <stddef.h> |
| 8 |
| 7 #include <algorithm> | 9 #include <algorithm> |
| 8 | 10 |
| 9 #include "base/bind.h" | 11 #include "base/bind.h" |
| 10 #include "base/callback.h" | 12 #include "base/callback.h" |
| 11 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 12 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 13 #include "jingle/glue/thread_wrapper.h" | 15 #include "jingle/glue/thread_wrapper.h" |
| 14 #include "remoting/base/constants.h" | 16 #include "remoting/base/constants.h" |
| 15 #include "remoting/base/logging.h" | 17 #include "remoting/base/logging.h" |
| 16 #include "remoting/host/chromoting_host_context.h" | 18 #include "remoting/host/chromoting_host_context.h" |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 DCHECK(CalledOnValidThread()); | 293 DCHECK(CalledOnValidThread()); |
| 292 | 294 |
| 293 while (!clients_.empty()) { | 295 while (!clients_.empty()) { |
| 294 size_t size = clients_.size(); | 296 size_t size = clients_.size(); |
| 295 clients_.front()->DisconnectSession(protocol::OK); | 297 clients_.front()->DisconnectSession(protocol::OK); |
| 296 CHECK_EQ(clients_.size(), size - 1); | 298 CHECK_EQ(clients_.size(), size - 1); |
| 297 } | 299 } |
| 298 } | 300 } |
| 299 | 301 |
| 300 } // namespace remoting | 302 } // namespace remoting |
| OLD | NEW |