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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop_proxy.h" | 10 #include "base/message_loop_proxy.h" |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 void ChromotingHost::OnSessionRouteChange( | 259 void ChromotingHost::OnSessionRouteChange( |
260 ClientSession* session, | 260 ClientSession* session, |
261 const std::string& channel_name, | 261 const std::string& channel_name, |
262 const protocol::TransportRoute& route) { | 262 const protocol::TransportRoute& route) { |
263 DCHECK(network_task_runner_->BelongsToCurrentThread()); | 263 DCHECK(network_task_runner_->BelongsToCurrentThread()); |
264 FOR_EACH_OBSERVER(HostStatusObserver, status_observers_, | 264 FOR_EACH_OBSERVER(HostStatusObserver, status_observers_, |
265 OnClientRouteChange(session->client_jid(), channel_name, | 265 OnClientRouteChange(session->client_jid(), channel_name, |
266 route)); | 266 route)); |
267 } | 267 } |
268 | 268 |
269 void ChromotingHost::OnClientDimensionsChanged(ClientSession* session, | 269 void ChromotingHost::OnClientResolutionChanged(ClientSession* session, |
270 const SkISize& size) { | 270 const SkISize& size, |
| 271 const SkIPoint& dpi) { |
271 DCHECK(network_task_runner_->BelongsToCurrentThread()); | 272 DCHECK(network_task_runner_->BelongsToCurrentThread()); |
272 FOR_EACH_OBSERVER(HostStatusObserver, status_observers_, | 273 FOR_EACH_OBSERVER(HostStatusObserver, status_observers_, |
273 OnClientDimensionsChanged(session->client_jid(), size)); | 274 OnClientResolutionChanged(session->client_jid(), |
| 275 size, dpi)); |
274 } | 276 } |
275 | 277 |
276 void ChromotingHost::OnSessionManagerReady() { | 278 void ChromotingHost::OnSessionManagerReady() { |
277 DCHECK(network_task_runner_->BelongsToCurrentThread()); | 279 DCHECK(network_task_runner_->BelongsToCurrentThread()); |
278 // Don't need to do anything here, just wait for incoming | 280 // Don't need to do anything here, just wait for incoming |
279 // connections. | 281 // connections. |
280 } | 282 } |
281 | 283 |
282 void ChromotingHost::OnIncomingSession( | 284 void ChromotingHost::OnIncomingSession( |
283 protocol::Session* session, | 285 protocol::Session* session, |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 OnShutdown()); | 405 OnShutdown()); |
404 | 406 |
405 for (std::vector<base::Closure>::iterator it = shutdown_tasks_.begin(); | 407 for (std::vector<base::Closure>::iterator it = shutdown_tasks_.begin(); |
406 it != shutdown_tasks_.end(); ++it) { | 408 it != shutdown_tasks_.end(); ++it) { |
407 it->Run(); | 409 it->Run(); |
408 } | 410 } |
409 shutdown_tasks_.clear(); | 411 shutdown_tasks_.clear(); |
410 } | 412 } |
411 | 413 |
412 } // namespace remoting | 414 } // namespace remoting |
OLD | NEW |