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

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

Issue 2306083002: Adding basic implementation of AudioNetworkAdaptor. (Closed)
Patch Set: using -> of Optional 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 #ifndef WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_CONTROLLER_MANAGER_H_
12 #define WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_CONTROLLER_MANAGER_H_
13
14 #include <memory>
15 #include <vector>
16
17 #include "webrtc/base/constructormagic.h"
18 #include "webrtc/modules/audio_coding/audio_network_adaptor/controller.h"
19
20 namespace webrtc {
21
22 class ControllerManager {
23 public:
24 struct Config {
25 Config();
26 ~Config();
27 };
28
29 explicit ControllerManager(const Config& config);
30
31 // Dependency injection for testing.
32 ControllerManager(const Config& config,
33 std::vector<std::unique_ptr<Controller>> controllers);
34
35 virtual ~ControllerManager();
36
37 // Sort controllers based on their significance.
38 virtual std::vector<Controller*> GetSortedControllers(
39 const Controller::NetworkMetrics& metrics);
40
41 virtual std::vector<Controller*> GetControllers() const;
42
43 private:
44 const Config config_;
45
46 std::vector<std::unique_ptr<Controller>> controllers_;
47
48 std::vector<Controller*> default_sorted_controllers_;
49
50 RTC_DISALLOW_COPY_AND_ASSIGN(ControllerManager);
51 };
kwiberg-webrtc 2016/09/09 11:56:15 I can't tell if this class is supposed to be an in
minyue-webrtc 2016/09/12 11:36:11 Some implementations will be added in later CLs: 1
kwiberg-webrtc 2016/09/12 13:33:50 OK. Sounds like an implementation, then. In which
minyue-webrtc 2016/09/12 15:08:35 The need for virtual methods is due to the need of
52
53 } // namespace webrtc
54
55 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_CONTROLLER_MANAGER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698