| 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/desktop_environment.h" | 5 #include "remoting/host/desktop_environment.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "remoting/host/capturer.h" | 9 #include "remoting/host/capturer.h" |
| 10 #include "remoting/host/chromoting_host.h" | 10 #include "remoting/host/chromoting_host.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 scoped_ptr<EventExecutor> event_executor) | 81 scoped_ptr<EventExecutor> event_executor) |
| 82 : host_(NULL), | 82 : host_(NULL), |
| 83 context_(context), | 83 context_(context), |
| 84 capturer_(capturer.Pass()), | 84 capturer_(capturer.Pass()), |
| 85 event_executor_(event_executor.Pass()) { | 85 event_executor_(event_executor.Pass()) { |
| 86 } | 86 } |
| 87 | 87 |
| 88 DesktopEnvironment::~DesktopEnvironment() { | 88 DesktopEnvironment::~DesktopEnvironment() { |
| 89 } | 89 } |
| 90 | 90 |
| 91 void DesktopEnvironment::OnSessionStarted() { | 91 void DesktopEnvironment::OnSessionStarted( |
| 92 event_executor_->OnSessionStarted(); | 92 const scoped_refptr<protocol::ClipboardProxy>& client_clipboard) { |
| 93 event_executor_->OnSessionStarted(client_clipboard); |
| 93 } | 94 } |
| 94 | 95 |
| 95 void DesktopEnvironment::OnSessionFinished() { | 96 void DesktopEnvironment::OnSessionFinished() { |
| 96 event_executor_->OnSessionFinished(); | 97 event_executor_->OnSessionFinished(); |
| 97 } | 98 } |
| 98 | 99 |
| 99 } // namespace remoting | 100 } // namespace remoting |
| OLD | NEW |