Chromium Code Reviews| 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 #include "remoting/host/chromoting_host.h" | 5 #include "remoting/host/chromoting_host.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 256 video_encode_task_runner_, audio_task_runner_)); | 256 video_encode_task_runner_, audio_task_runner_)); |
| 257 } | 257 } |
| 258 | 258 |
| 259 // Create a ClientSession object. | 259 // Create a ClientSession object. |
| 260 std::vector<HostExtension*> extension_ptrs; | 260 std::vector<HostExtension*> extension_ptrs; |
| 261 for (const auto& extension : extensions_) | 261 for (const auto& extension : extensions_) |
| 262 extension_ptrs.push_back(extension.get()); | 262 extension_ptrs.push_back(extension.get()); |
| 263 clients_.push_back(base::MakeUnique<ClientSession>( | 263 clients_.push_back(base::MakeUnique<ClientSession>( |
| 264 this, std::move(connection), desktop_environment_factory_, | 264 this, std::move(connection), desktop_environment_factory_, |
| 265 desktop_environment_options_, max_session_duration_, pairing_registry_, | 265 desktop_environment_options_, max_session_duration_, pairing_registry_, |
| 266 extension_ptrs, | 266 extension_ptrs)); |
| 267 std::vector<protocol::DataChannelManager::NameCallbackPair>())); | |
|
jarhar
2017/07/05 17:51:42
In order to register callbacks from this file, wou
Hzj_jie
2017/07/05 18:34:31
That's usually not necessary: Optional data channe
| |
| 268 } | 267 } |
| 269 | 268 |
| 270 } // namespace remoting | 269 } // namespace remoting |
| OLD | NEW |