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/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 Loading... |
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 |
OLD | NEW |