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

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

Issue 1113493005: [remoting] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits Created 5 years, 7 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
« no previous file with comments | « remoting/client/client_status_logger_unittest.cc ('k') | remoting/host/heartbeat_sender.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/client_session.h" 5 #include "remoting/host/client_session.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/thread_task_runner_handle.h"
10 #include "remoting/base/capabilities.h" 11 #include "remoting/base/capabilities.h"
11 #include "remoting/base/logging.h" 12 #include "remoting/base/logging.h"
12 #include "remoting/codec/audio_encoder.h" 13 #include "remoting/codec/audio_encoder.h"
13 #include "remoting/codec/audio_encoder_opus.h" 14 #include "remoting/codec/audio_encoder_opus.h"
14 #include "remoting/codec/audio_encoder_verbatim.h" 15 #include "remoting/codec/audio_encoder_verbatim.h"
15 #include "remoting/codec/video_encoder.h" 16 #include "remoting/codec/video_encoder.h"
16 #include "remoting/codec/video_encoder_verbatim.h" 17 #include "remoting/codec/video_encoder_verbatim.h"
17 #include "remoting/codec/video_encoder_vpx.h" 18 #include "remoting/codec/video_encoder_vpx.h"
18 #include "remoting/host/audio_capturer.h" 19 #include "remoting/host/audio_capturer.h"
19 #include "remoting/host/audio_pump.h" 20 #include "remoting/host/audio_pump.h"
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 GnubbyAuthHandler* gnubby_auth_handler) { 496 GnubbyAuthHandler* gnubby_auth_handler) {
496 DCHECK(CalledOnValidThread()); 497 DCHECK(CalledOnValidThread());
497 gnubby_auth_handler_.reset(gnubby_auth_handler); 498 gnubby_auth_handler_.reset(gnubby_auth_handler);
498 } 499 }
499 500
500 scoped_ptr<protocol::ClipboardStub> ClientSession::CreateClipboardProxy() { 501 scoped_ptr<protocol::ClipboardStub> ClientSession::CreateClipboardProxy() {
501 DCHECK(CalledOnValidThread()); 502 DCHECK(CalledOnValidThread());
502 503
503 return make_scoped_ptr( 504 return make_scoped_ptr(
504 new protocol::ClipboardThreadProxy(client_clipboard_factory_.GetWeakPtr(), 505 new protocol::ClipboardThreadProxy(client_clipboard_factory_.GetWeakPtr(),
505 base::MessageLoopProxy::current())); 506 base::ThreadTaskRunnerHandle::Get()));
506 } 507 }
507 508
508 } // namespace remoting 509 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/client_status_logger_unittest.cc ('k') | remoting/host/heartbeat_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698