| 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_context.h" | 10 #include "remoting/host/chromoting_host_context.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 scoped_ptr<Capturer> capturer, | 79 scoped_ptr<Capturer> capturer, |
| 80 scoped_ptr<EventExecutor> event_executor) | 80 scoped_ptr<EventExecutor> event_executor) |
| 81 : context_(context), | 81 : context_(context), |
| 82 capturer_(capturer.Pass()), | 82 capturer_(capturer.Pass()), |
| 83 event_executor_(event_executor.Pass()) { | 83 event_executor_(event_executor.Pass()) { |
| 84 } | 84 } |
| 85 | 85 |
| 86 DesktopEnvironment::~DesktopEnvironment() { | 86 DesktopEnvironment::~DesktopEnvironment() { |
| 87 } | 87 } |
| 88 | 88 |
| 89 void DesktopEnvironment::OnSessionStarted() { | 89 void DesktopEnvironment::OnSessionStarted( |
| 90 event_executor_->OnSessionStarted(); | 90 scoped_ptr<protocol::ClipboardStub> client_clipboard) { |
| 91 event_executor_->OnSessionStarted(client_clipboard.Pass()); |
| 91 } | 92 } |
| 92 | 93 |
| 93 void DesktopEnvironment::OnSessionFinished() { | 94 void DesktopEnvironment::OnSessionFinished() { |
| 94 event_executor_->OnSessionFinished(); | 95 event_executor_->OnSessionFinished(); |
| 95 } | 96 } |
| 96 | 97 |
| 97 } // namespace remoting | 98 } // namespace remoting |
| OLD | NEW |