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/thread_task_runner_handle.h" |
10 #include "remoting/base/capabilities.h" | 10 #include "remoting/base/capabilities.h" |
11 #include "remoting/base/logging.h" | 11 #include "remoting/base/logging.h" |
12 #include "remoting/codec/audio_encoder.h" | 12 #include "remoting/codec/audio_encoder.h" |
13 #include "remoting/codec/audio_encoder_opus.h" | 13 #include "remoting/codec/audio_encoder_opus.h" |
14 #include "remoting/codec/audio_encoder_verbatim.h" | 14 #include "remoting/codec/audio_encoder_verbatim.h" |
15 #include "remoting/codec/video_encoder.h" | 15 #include "remoting/codec/video_encoder.h" |
16 #include "remoting/codec/video_encoder_verbatim.h" | 16 #include "remoting/codec/video_encoder_verbatim.h" |
17 #include "remoting/codec/video_encoder_vpx.h" | 17 #include "remoting/codec/video_encoder_vpx.h" |
18 #include "remoting/host/audio_capturer.h" | 18 #include "remoting/host/audio_capturer.h" |
19 #include "remoting/host/audio_pump.h" | 19 #include "remoting/host/audio_pump.h" |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 GnubbyAuthHandler* gnubby_auth_handler) { | 494 GnubbyAuthHandler* gnubby_auth_handler) { |
495 DCHECK(CalledOnValidThread()); | 495 DCHECK(CalledOnValidThread()); |
496 gnubby_auth_handler_.reset(gnubby_auth_handler); | 496 gnubby_auth_handler_.reset(gnubby_auth_handler); |
497 } | 497 } |
498 | 498 |
499 scoped_ptr<protocol::ClipboardStub> ClientSession::CreateClipboardProxy() { | 499 scoped_ptr<protocol::ClipboardStub> ClientSession::CreateClipboardProxy() { |
500 DCHECK(CalledOnValidThread()); | 500 DCHECK(CalledOnValidThread()); |
501 | 501 |
502 return make_scoped_ptr( | 502 return make_scoped_ptr( |
503 new protocol::ClipboardThreadProxy(client_clipboard_factory_.GetWeakPtr(), | 503 new protocol::ClipboardThreadProxy(client_clipboard_factory_.GetWeakPtr(), |
504 base::MessageLoopProxy::current())); | 504 base::ThreadTaskRunnerHandle::Get())); |
505 } | 505 } |
506 | 506 |
507 } // namespace remoting | 507 } // namespace remoting |
OLD | NEW |