| 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 // 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/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 frame_recorder_buffer_size_(0), | 409 frame_recorder_buffer_size_(0), |
| 410 policy_state_(POLICY_INITIALIZING), | 410 policy_state_(POLICY_INITIALIZING), |
| 411 host_username_match_required_(false), | 411 host_username_match_required_(false), |
| 412 allow_nat_traversal_(true), | 412 allow_nat_traversal_(true), |
| 413 allow_relay_(true), | 413 allow_relay_(true), |
| 414 allow_pairing_(true), | 414 allow_pairing_(true), |
| 415 curtain_required_(false), | 415 curtain_required_(false), |
| 416 enable_gnubby_auth_(false), | 416 enable_gnubby_auth_(false), |
| 417 enable_window_capture_(false), | 417 enable_window_capture_(false), |
| 418 window_id_(0), | 418 window_id_(0), |
| 419 self_(this), |
| 419 #if defined(REMOTING_MULTI_PROCESS) | 420 #if defined(REMOTING_MULTI_PROCESS) |
| 420 desktop_session_connector_(nullptr), | 421 desktop_session_connector_(nullptr), |
| 421 #endif // defined(REMOTING_MULTI_PROCESS) | 422 #endif // defined(REMOTING_MULTI_PROCESS) |
| 422 self_(this), | |
| 423 exit_code_out_(exit_code_out), | 423 exit_code_out_(exit_code_out), |
| 424 signal_parent_(false), | 424 signal_parent_(false), |
| 425 shutdown_watchdog_(shutdown_watchdog) { | 425 shutdown_watchdog_(shutdown_watchdog) { |
| 426 StartOnUiThread(); | 426 StartOnUiThread(); |
| 427 } | 427 } |
| 428 | 428 |
| 429 HostProcess::~HostProcess() { | 429 HostProcess::~HostProcess() { |
| 430 // Verify that UI components have been torn down. | 430 // Verify that UI components have been torn down. |
| 431 DCHECK(!config_watcher_); | 431 DCHECK(!config_watcher_); |
| 432 DCHECK(!daemon_channel_); | 432 DCHECK(!daemon_channel_); |
| (...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1638 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds)); | 1638 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds)); |
| 1639 new HostProcess(context.Pass(), &exit_code, &shutdown_watchdog); | 1639 new HostProcess(context.Pass(), &exit_code, &shutdown_watchdog); |
| 1640 | 1640 |
| 1641 // Run the main (also UI) message loop until the host no longer needs it. | 1641 // Run the main (also UI) message loop until the host no longer needs it. |
| 1642 message_loop.Run(); | 1642 message_loop.Run(); |
| 1643 | 1643 |
| 1644 return exit_code; | 1644 return exit_code; |
| 1645 } | 1645 } |
| 1646 | 1646 |
| 1647 } // namespace remoting | 1647 } // namespace remoting |
| OLD | NEW |