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

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

Issue 1033913003: Touch Events capability negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
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 file implements a standalone host process for Me2Me. 5 // This file implements a standalone host process for Me2Me.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "remoting/host/host_event_logger.h" 51 #include "remoting/host/host_event_logger.h"
52 #include "remoting/host/host_exit_codes.h" 52 #include "remoting/host/host_exit_codes.h"
53 #include "remoting/host/host_main.h" 53 #include "remoting/host/host_main.h"
54 #include "remoting/host/host_signaling_manager.h" 54 #include "remoting/host/host_signaling_manager.h"
55 #include "remoting/host/host_status_logger.h" 55 #include "remoting/host/host_status_logger.h"
56 #include "remoting/host/ipc_constants.h" 56 #include "remoting/host/ipc_constants.h"
57 #include "remoting/host/ipc_desktop_environment.h" 57 #include "remoting/host/ipc_desktop_environment.h"
58 #include "remoting/host/ipc_host_event_logger.h" 58 #include "remoting/host/ipc_host_event_logger.h"
59 #include "remoting/host/logging.h" 59 #include "remoting/host/logging.h"
60 #include "remoting/host/me2me_desktop_environment.h" 60 #include "remoting/host/me2me_desktop_environment.h"
61 #include "remoting/host/multi_touch_capability.h"
61 #include "remoting/host/pairing_registry_delegate.h" 62 #include "remoting/host/pairing_registry_delegate.h"
62 #include "remoting/host/policy_watcher.h" 63 #include "remoting/host/policy_watcher.h"
63 #include "remoting/host/session_manager_factory.h" 64 #include "remoting/host/session_manager_factory.h"
64 #include "remoting/host/shutdown_watchdog.h" 65 #include "remoting/host/shutdown_watchdog.h"
65 #include "remoting/host/signaling_connector.h" 66 #include "remoting/host/signaling_connector.h"
66 #include "remoting/host/single_window_desktop_environment.h" 67 #include "remoting/host/single_window_desktop_environment.h"
67 #include "remoting/host/third_party_auth_config.h" 68 #include "remoting/host/third_party_auth_config.h"
68 #include "remoting/host/token_validator_factory_impl.h" 69 #include "remoting/host/token_validator_factory_impl.h"
69 #include "remoting/host/usage_stats_consent.h" 70 #include "remoting/host/usage_stats_consent.h"
70 #include "remoting/host/username.h" 71 #include "remoting/host/username.h"
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 desktop_environment_factory = 812 desktop_environment_factory =
812 new Me2MeDesktopEnvironmentFactory( 813 new Me2MeDesktopEnvironmentFactory(
813 context_->network_task_runner(), 814 context_->network_task_runner(),
814 context_->input_task_runner(), 815 context_->input_task_runner(),
815 context_->ui_task_runner()); 816 context_->ui_task_runner());
816 } 817 }
817 #endif // !defined(OS_WIN) 818 #endif // !defined(OS_WIN)
818 819
819 desktop_environment_factory_.reset(desktop_environment_factory); 820 desktop_environment_factory_.reset(desktop_environment_factory);
820 desktop_environment_factory_->SetEnableGnubbyAuth(enable_gnubby_auth_); 821 desktop_environment_factory_->SetEnableGnubbyAuth(enable_gnubby_auth_);
822 desktop_environment_factory_->SetEnableMultiTouch(MultiTouchCapable());
Wez 2015/03/30 17:10:07 Do you need to have the Me2Me host do this? You're
Rintaro Kuroiwa 2015/04/08 03:27:43 All I really wanted to do is unit test that "multi
821 823
822 context_->network_task_runner()->PostTask( 824 context_->network_task_runner()->PostTask(
823 FROM_HERE, 825 FROM_HERE,
824 base::Bind(&HostProcess::StartOnNetworkThread, this)); 826 base::Bind(&HostProcess::StartOnNetworkThread, this));
825 } 827 }
826 828
827 void HostProcess::ShutdownOnUiThread() { 829 void HostProcess::ShutdownOnUiThread() {
828 DCHECK(context_->ui_task_runner()->BelongsToCurrentThread()); 830 DCHECK(context_->ui_task_runner()->BelongsToCurrentThread());
829 831
830 // Tear down resources that need to be torn down on the UI thread. 832 // Tear down resources that need to be torn down on the UI thread.
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
1560 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds)); 1562 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds));
1561 new HostProcess(context.Pass(), &exit_code, &shutdown_watchdog); 1563 new HostProcess(context.Pass(), &exit_code, &shutdown_watchdog);
1562 1564
1563 // Run the main (also UI) message loop until the host no longer needs it. 1565 // Run the main (also UI) message loop until the host no longer needs it.
1564 message_loop.Run(); 1566 message_loop.Run();
1565 1567
1566 return exit_code; 1568 return exit_code;
1567 } 1569 }
1568 1570
1569 } // namespace remoting 1571 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698