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

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

Issue 9646013: Add the plumbing that will carry a clipboard item from a chromoting client to a host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix remoting_simple_host. Created 8 years, 9 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
« no previous file with comments | « remoting/host/host_mock_objects.h ('k') | remoting/proto/event.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 } 209 }
210 210
211 void StartHost() { 211 void StartHost() {
212 signal_strategy_.reset( 212 signal_strategy_.reset(
213 new XmppSignalStrategy(context_.jingle_thread(), xmpp_login_, 213 new XmppSignalStrategy(context_.jingle_thread(), xmpp_login_,
214 xmpp_auth_token_, xmpp_auth_service_)); 214 xmpp_auth_token_, xmpp_auth_service_));
215 signaling_connector_.reset(new SignalingConnector(signal_strategy_.get())); 215 signaling_connector_.reset(new SignalingConnector(signal_strategy_.get()));
216 216
217 if (fake_) { 217 if (fake_) {
218 scoped_ptr<Capturer> capturer(new CapturerFake()); 218 scoped_ptr<Capturer> capturer(new CapturerFake());
219 scoped_ptr<protocol::InputStub> event_executor = 219 scoped_ptr<protocol::HostEventStub> event_executor =
220 EventExecutor::Create( 220 EventExecutor::Create(
221 context_.desktop_message_loop(), capturer.get()); 221 context_.desktop_message_loop(), capturer.get());
222 desktop_environment_ = DesktopEnvironment::CreateFake( 222 desktop_environment_ = DesktopEnvironment::CreateFake(
223 &context_, capturer.Pass(), event_executor.Pass()); 223 &context_, capturer.Pass(), event_executor.Pass());
224 } else { 224 } else {
225 desktop_environment_ = DesktopEnvironment::Create(&context_); 225 desktop_environment_ = DesktopEnvironment::Create(&context_);
226 } 226 }
227 227
228 host_ = new ChromotingHost(&context_, signal_strategy_.get(), 228 host_ = new ChromotingHost(&context_, signal_strategy_.get(),
229 desktop_environment_.get(), network_settings_); 229 desktop_environment_.get(), network_settings_);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 max_port < 0 || max_port > 65535) { 371 max_port < 0 || max_port > 65535) {
372 LOG(ERROR) << "Invalid max-port value: " << max_port 372 LOG(ERROR) << "Invalid max-port value: " << max_port
373 << ". Expected integer in range [0, 65535]."; 373 << ". Expected integer in range [0, 65535].";
374 return 1; 374 return 1;
375 } 375 }
376 simple_host.network_settings()->max_port = max_port; 376 simple_host.network_settings()->max_port = max_port;
377 } 377 }
378 378
379 return simple_host.Run(); 379 return simple_host.Run();
380 } 380 }
OLDNEW
« no previous file with comments | « remoting/host/host_mock_objects.h ('k') | remoting/proto/event.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698