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

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

Issue 2420183002: Don't use barcodes in ProtocolPerfTests (Closed)
Patch Set: . Created 4 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
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/client_session.h" 5 #include "remoting/host/client_session.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 DCHECK(CalledOnValidThread()); 397 DCHECK(CalledOnValidThread());
398 DCHECK(desktop_environment_); 398 DCHECK(desktop_environment_);
399 return desktop_environment_->GetDesktopSessionId(); 399 return desktop_environment_->GetDesktopSessionId();
400 } 400 }
401 401
402 ClientSessionControl* ClientSession::session_control() { 402 ClientSessionControl* ClientSession::session_control() {
403 DCHECK(CalledOnValidThread()); 403 DCHECK(CalledOnValidThread());
404 return this; 404 return this;
405 } 405 }
406 406
407 void ClientSession::SetEventTimestampsSourceForTests(
408 scoped_refptr<protocol::InputEventTimestampsSource>
409 event_timestamp_source) {
410 DCHECK(CalledOnValidThread());
411 video_stream_->SetEventTimestampsSource(event_timestamp_source);
412 }
413
407 std::unique_ptr<protocol::ClipboardStub> ClientSession::CreateClipboardProxy() { 414 std::unique_ptr<protocol::ClipboardStub> ClientSession::CreateClipboardProxy() {
408 DCHECK(CalledOnValidThread()); 415 DCHECK(CalledOnValidThread());
409
410 return base::MakeUnique<protocol::ClipboardThreadProxy>( 416 return base::MakeUnique<protocol::ClipboardThreadProxy>(
411 client_clipboard_factory_.GetWeakPtr(), 417 client_clipboard_factory_.GetWeakPtr(),
412 base::ThreadTaskRunnerHandle::Get()); 418 base::ThreadTaskRunnerHandle::Get());
413 } 419 }
414 420
415 void ClientSession::OnVideoSizeChanged(protocol::VideoStream* video_stream, 421 void ClientSession::OnVideoSizeChanged(protocol::VideoStream* video_stream,
416 const webrtc::DesktopSize& size, 422 const webrtc::DesktopSize& size,
417 const webrtc::DesktopVector& dpi) { 423 const webrtc::DesktopVector& dpi) {
418 DCHECK(CalledOnValidThread()); 424 DCHECK(CalledOnValidThread());
419 425
(...skipping 29 matching lines...) Expand all
449 connection_->client_stub()->SetVideoLayout(layout); 455 connection_->client_stub()->SetVideoLayout(layout);
450 } else { 456 } else {
451 pending_video_layout_message_.reset(new protocol::VideoLayout(layout)); 457 pending_video_layout_message_.reset(new protocol::VideoLayout(layout));
452 } 458 }
453 break; 459 break;
454 } 460 }
455 } 461 }
456 } 462 }
457 463
458 } // namespace remoting 464 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698