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

Side by Side Diff: remoting/host/it2me/it2me_host.cc

Issue 2080723008: [Chromoting] Use device::PowerSaveBlocker to block screen saver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve review comments Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/it2me/it2me_host.h" 5 #include "remoting/host/it2me/it2me_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 std::unique_ptr<protocol::CandidateSessionConfig> protocol_config = 259 std::unique_ptr<protocol::CandidateSessionConfig> protocol_config =
260 protocol::CandidateSessionConfig::CreateDefault(); 260 protocol::CandidateSessionConfig::CreateDefault();
261 // Disable audio by default. 261 // Disable audio by default.
262 // TODO(sergeyu): Add UI to enable it. 262 // TODO(sergeyu): Add UI to enable it.
263 protocol_config->DisableAudioChannel(); 263 protocol_config->DisableAudioChannel();
264 session_manager->set_protocol_config(std::move(protocol_config)); 264 session_manager->set_protocol_config(std::move(protocol_config));
265 265
266 // Create the host. 266 // Create the host.
267 host_.reset(new ChromotingHost(desktop_environment_factory_.get(), 267 host_.reset(new ChromotingHost(desktop_environment_factory_.get(),
268 std::move(session_manager), transport_context, 268 std::move(session_manager), transport_context,
269 host_context_->audio_task_runner(), 269 *host_context_));
270 host_context_->video_encode_task_runner()));
271 host_->AddStatusObserver(this); 270 host_->AddStatusObserver(this);
272 host_status_logger_.reset( 271 host_status_logger_.reset(
273 new HostStatusLogger(host_->AsWeakPtr(), ServerLogEntry::IT2ME, 272 new HostStatusLogger(host_->AsWeakPtr(), ServerLogEntry::IT2ME,
274 signal_strategy_.get(), directory_bot_jid_)); 273 signal_strategy_.get(), directory_bot_jid_));
275 274
276 // Create event logger. 275 // Create event logger.
277 host_event_logger_ = 276 host_event_logger_ =
278 HostEventLogger::Create(host_->AsWeakPtr(), kApplicationName); 277 HostEventLogger::Create(host_->AsWeakPtr(), kApplicationName);
279 278
280 // Connect signaling and start the host. 279 // Connect signaling and start the host.
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 std::unique_ptr<It2MeConfirmationDialogFactory> confirmation_dialog_factory( 521 std::unique_ptr<It2MeConfirmationDialogFactory> confirmation_dialog_factory(
523 new It2MeConfirmationDialogFactory()); 522 new It2MeConfirmationDialogFactory());
524 std::unique_ptr<PolicyWatcher> policy_watcher = 523 std::unique_ptr<PolicyWatcher> policy_watcher =
525 PolicyWatcher::Create(policy_service_, context->file_task_runner()); 524 PolicyWatcher::Create(policy_service_, context->file_task_runner());
526 return new It2MeHost(std::move(context), std::move(policy_watcher), 525 return new It2MeHost(std::move(context), std::move(policy_watcher),
527 std::move(confirmation_dialog_factory), observer, 526 std::move(confirmation_dialog_factory), observer,
528 xmpp_server_config, directory_bot_jid); 527 xmpp_server_config, directory_bot_jid);
529 } 528 }
530 529
531 } // namespace remoting 530 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698