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

Side by Side Diff: webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.cc

Issue 2306083002: Adding basic implementation of AudioNetworkAdaptor. (Closed)
Patch Set: more polish Created 4 years, 3 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
(Empty)
1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #include <utility>
12
13 #include "webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h "
14
15 namespace webrtc {
16
17 ControllerManagerImpl::Config::Config() = default;
18
19 ControllerManagerImpl::Config::~Config() = default;
20
21 ControllerManagerImpl::ControllerManagerImpl(const Config& config)
22 : config_(config) {}
23
24 ControllerManagerImpl::ControllerManagerImpl(
25 const Config& config,
26 std::vector<std::unique_ptr<Controller>> controllers)
27 : config_(config), controllers_(std::move(controllers)) {
28 for (auto& controller : controllers_) {
29 default_sorted_controllers_.push_back(controller.get());
30 }
31 }
32
33 ControllerManagerImpl::~ControllerManagerImpl() = default;
34
35 std::vector<Controller*> ControllerManagerImpl::GetSortedControllers(
36 const Controller::NetworkMetrics& metrics) {
37 // TODO(minyue): Reorder controllers according to their significance.
38 return default_sorted_controllers_;
39 }
40
41 std::vector<Controller*> ControllerManagerImpl::GetControllers() const {
42 return default_sorted_controllers_;
43 }
44
45 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698