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

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

Issue 10381115: [Chromoting] The Windows IT2Me host gets any new text items it finds on the clipboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move ClipboardWin to the UI thread, and tidy up. Created 8 years, 7 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 // This is an application of a minimal host process in a Chromoting 5 // This is an application of a minimal host process in a Chromoting
6 // system. It serves the purpose of gluing different pieces together 6 // system. It serves the purpose of gluing different pieces together
7 // to make a functional host process for testing. 7 // to make a functional host process for testing.
8 // 8 //
9 // It peforms the following functionality: 9 // It peforms the following functionality:
10 // 1. Connect to the GTalk network and register the machine as a host. 10 // 1. Connect to the GTalk network and register the machine as a host.
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 void StartHost() { 213 void StartHost() {
214 signal_strategy_.reset( 214 signal_strategy_.reset(
215 new XmppSignalStrategy(context_.jingle_thread(), xmpp_login_, 215 new XmppSignalStrategy(context_.jingle_thread(), xmpp_login_,
216 xmpp_auth_token_, xmpp_auth_service_)); 216 xmpp_auth_token_, xmpp_auth_service_));
217 signaling_connector_.reset(new SignalingConnector(signal_strategy_.get())); 217 signaling_connector_.reset(new SignalingConnector(signal_strategy_.get()));
218 218
219 if (fake_) { 219 if (fake_) {
220 scoped_ptr<Capturer> capturer(new CapturerFake()); 220 scoped_ptr<Capturer> capturer(new CapturerFake());
221 scoped_ptr<EventExecutor> event_executor = 221 scoped_ptr<EventExecutor> event_executor =
222 EventExecutor::Create( 222 EventExecutor::Create(context_.desktop_message_loop(),
223 context_.desktop_message_loop(), capturer.get()); 223 context_.ui_message_loop(),
224 capturer.get());
224 desktop_environment_ = DesktopEnvironment::CreateFake( 225 desktop_environment_ = DesktopEnvironment::CreateFake(
225 &context_, capturer.Pass(), event_executor.Pass()); 226 &context_, capturer.Pass(), event_executor.Pass());
226 } else { 227 } else {
227 desktop_environment_ = DesktopEnvironment::Create(&context_); 228 desktop_environment_ = DesktopEnvironment::Create(&context_);
228 } 229 }
229 230
230 host_ = new ChromotingHost(&context_, signal_strategy_.get(), 231 host_ = new ChromotingHost(&context_, signal_strategy_.get(),
231 desktop_environment_.get(), network_settings_); 232 desktop_environment_.get(), network_settings_);
232 233
233 ServerLogEntry::Mode mode = 234 ServerLogEntry::Mode mode =
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 max_port < 0 || max_port > 65535) { 377 max_port < 0 || max_port > 65535) {
377 LOG(ERROR) << "Invalid max-port value: " << max_port 378 LOG(ERROR) << "Invalid max-port value: " << max_port
378 << ". Expected integer in range [0, 65535]."; 379 << ". Expected integer in range [0, 65535].";
379 return 1; 380 return 1;
380 } 381 }
381 simple_host.network_settings()->max_port = max_port; 382 simple_host.network_settings()->max_port = max_port;
382 } 383 }
383 384
384 return simple_host.Run(); 385 return simple_host.Run();
385 } 386 }
OLDNEW
« remoting/host/event_executor_win.cc ('K') | « remoting/host/event_executor_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698