| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/host_window_proxy.h" | 5 #include "remoting/host/host_window_proxy.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 core_->Start(client_session_control); | 88 core_->Start(client_session_control); |
| 89 } | 89 } |
| 90 | 90 |
| 91 HostWindowProxy::Core::Core( | 91 HostWindowProxy::Core::Core( |
| 92 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | 92 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
| 93 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | 93 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
| 94 scoped_ptr<HostWindow> host_window) | 94 scoped_ptr<HostWindow> host_window) |
| 95 : caller_task_runner_(caller_task_runner), | 95 : caller_task_runner_(caller_task_runner), |
| 96 ui_task_runner_(ui_task_runner), | 96 ui_task_runner_(ui_task_runner), |
| 97 host_window_(host_window.Pass()), | 97 host_window_(host_window.Pass()), |
| 98 weak_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { | 98 weak_factory_(this) { |
| 99 DCHECK(caller_task_runner->BelongsToCurrentThread()); | 99 DCHECK(caller_task_runner->BelongsToCurrentThread()); |
| 100 } | 100 } |
| 101 | 101 |
| 102 void HostWindowProxy::Core::Start( | 102 void HostWindowProxy::Core::Start( |
| 103 const base::WeakPtr<ClientSessionControl>& client_session_control) { | 103 const base::WeakPtr<ClientSessionControl>& client_session_control) { |
| 104 DCHECK(caller_task_runner_->BelongsToCurrentThread()); | 104 DCHECK(caller_task_runner_->BelongsToCurrentThread()); |
| 105 DCHECK(!client_session_control_); | 105 DCHECK(!client_session_control_); |
| 106 DCHECK(client_session_control); | 106 DCHECK(client_session_control); |
| 107 | 107 |
| 108 client_session_control_ = client_session_control; | 108 client_session_control_ = client_session_control; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 caller_task_runner_->PostTask( | 168 caller_task_runner_->PostTask( |
| 169 FROM_HERE, base::Bind(&Core::SetDisableInputs, this, disable_inputs)); | 169 FROM_HERE, base::Bind(&Core::SetDisableInputs, this, disable_inputs)); |
| 170 return; | 170 return; |
| 171 } | 171 } |
| 172 | 172 |
| 173 if (client_session_control_) | 173 if (client_session_control_) |
| 174 client_session_control_->SetDisableInputs(disable_inputs); | 174 client_session_control_->SetDisableInputs(disable_inputs); |
| 175 } | 175 } |
| 176 | 176 |
| 177 } // namespace remoting | 177 } // namespace remoting |
| OLD | NEW |