Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: remoting/host/desktop_environment.cc

Issue 10413060: [Chromoting] Let the Windows IT2Me host send clipboard events to the client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't ref-count ClipboardThreadProxy. Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 scoped_ptr<protocol::ClipboardStub> client_clipboard) {
93 event_executor_->OnSessionStarted(client_clipboard.Pass());
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698