| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/stl_util-inl.h" | 7 #include "base/stl_util-inl.h" |
| 8 #include "base/task.h" | 8 #include "base/task.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "remoting/base/constants.h" | 10 #include "remoting/base/constants.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 using remoting::protocol::ConnectionToClient; | 29 using remoting::protocol::ConnectionToClient; |
| 30 using remoting::protocol::InputStub; | 30 using remoting::protocol::InputStub; |
| 31 | 31 |
| 32 namespace remoting { | 32 namespace remoting { |
| 33 | 33 |
| 34 // static | 34 // static |
| 35 ChromotingHost* ChromotingHost::Create(ChromotingHostContext* context, | 35 ChromotingHost* ChromotingHost::Create(ChromotingHostContext* context, |
| 36 MutableHostConfig* config) { | 36 MutableHostConfig* config) { |
| 37 Capturer* capturer = Capturer::Create(context->main_message_loop()); | 37 Capturer* capturer = Capturer::Create(context->main_message_loop()); |
| 38 InputStub* input_stub = CreateEventExecutor(context->main_message_loop(), | 38 InputStub* input_stub = CreateEventExecutor(context->ui_message_loop(), |
| 39 capturer); | 39 capturer); |
| 40 return Create(context, config, capturer, input_stub); | 40 return Create(context, config, capturer, input_stub); |
| 41 } | 41 } |
| 42 | 42 |
| 43 // static | 43 // static |
| 44 ChromotingHost* ChromotingHost::Create(ChromotingHostContext* context, | 44 ChromotingHost* ChromotingHost::Create(ChromotingHostContext* context, |
| 45 MutableHostConfig* config, | 45 MutableHostConfig* config, |
| 46 Capturer* capturer, | 46 Capturer* capturer, |
| 47 InputStub* input_stub) { | 47 InputStub* input_stub) { |
| 48 return new ChromotingHost(context, config, capturer, input_stub); | 48 return new ChromotingHost(context, config, capturer, input_stub); |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 FROM_HERE, | 361 FROM_HERE, |
| 362 NewRunnableMethod(this, &ChromotingHost::LocalLoginSucceeded)); | 362 NewRunnableMethod(this, &ChromotingHost::LocalLoginSucceeded)); |
| 363 return; | 363 return; |
| 364 } | 364 } |
| 365 | 365 |
| 366 // If local login has succeeded the recorder can start. | 366 // If local login has succeeded the recorder can start. |
| 367 recorder_->Start(); | 367 recorder_->Start(); |
| 368 } | 368 } |
| 369 | 369 |
| 370 } // namespace remoting | 370 } // namespace remoting |
| OLD | NEW |