Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1249)

Side by Side Diff: remoting/host/chromoting_host.cc

Issue 10918224: Cross-platform plumbing for resize-to-client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed typo. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/chromoting_host.h ('k') | remoting/host/client_session.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 void ChromotingHost::OnSessionRouteChange( 249 void ChromotingHost::OnSessionRouteChange(
250 ClientSession* session, 250 ClientSession* session,
251 const std::string& channel_name, 251 const std::string& channel_name,
252 const protocol::TransportRoute& route) { 252 const protocol::TransportRoute& route) {
253 DCHECK(context_->network_task_runner()->BelongsToCurrentThread()); 253 DCHECK(context_->network_task_runner()->BelongsToCurrentThread());
254 FOR_EACH_OBSERVER(HostStatusObserver, status_observers_, 254 FOR_EACH_OBSERVER(HostStatusObserver, status_observers_,
255 OnClientRouteChange(session->client_jid(), channel_name, 255 OnClientRouteChange(session->client_jid(), channel_name,
256 route)); 256 route));
257 } 257 }
258 258
259 void ChromotingHost::OnClientDimensionsChanged(ClientSession* session,
260 const SkISize& size) {
261 DCHECK(context_->network_task_runner()->BelongsToCurrentThread());
262 FOR_EACH_OBSERVER(HostStatusObserver, status_observers_,
263 OnClientDimensionsChanged(session->client_jid(), size));
264 }
265
259 void ChromotingHost::OnSessionManagerReady() { 266 void ChromotingHost::OnSessionManagerReady() {
260 DCHECK(context_->network_task_runner()->BelongsToCurrentThread()); 267 DCHECK(context_->network_task_runner()->BelongsToCurrentThread());
261 // Don't need to do anything here, just wait for incoming 268 // Don't need to do anything here, just wait for incoming
262 // connections. 269 // connections.
263 } 270 }
264 271
265 void ChromotingHost::OnIncomingSession( 272 void ChromotingHost::OnIncomingSession(
266 protocol::Session* session, 273 protocol::Session* session,
267 protocol::SessionManager::IncomingSessionResponse* response) { 274 protocol::SessionManager::IncomingSessionResponse* response) {
268 DCHECK(context_->network_task_runner()->BelongsToCurrentThread()); 275 DCHECK(context_->network_task_runner()->BelongsToCurrentThread());
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 OnShutdown()); 405 OnShutdown());
399 406
400 for (std::vector<base::Closure>::iterator it = shutdown_tasks_.begin(); 407 for (std::vector<base::Closure>::iterator it = shutdown_tasks_.begin();
401 it != shutdown_tasks_.end(); ++it) { 408 it != shutdown_tasks_.end(); ++it) {
402 it->Run(); 409 it->Run();
403 } 410 }
404 shutdown_tasks_.clear(); 411 shutdown_tasks_.clear();
405 } 412 }
406 413
407 } // namespace remoting 414 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/chromoting_host.h ('k') | remoting/host/client_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698