blob: 4d5c98a4aba2d2968fce70e4989945cb57a27268 [file] [log] [blame]
Harald Alvestrand445e6b02020-09-29 14:21:47 +00001/*
2 * Copyright 2020 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// This file contains an interface for the (obsolete) StatsCollector class that
12// is used by compilation units that do not wish to depend on the StatsCollector
13// implementation.
14
15#ifndef PC_STATS_COLLECTOR_INTERFACE_H_
16#define PC_STATS_COLLECTOR_INTERFACE_H_
17
18#include <stdint.h>
19
20#include "api/media_stream_interface.h"
Harald Alvestrand1090e442020-10-05 07:01:09 +000021#include "api/stats_types.h"
Harald Alvestrand445e6b02020-09-29 14:21:47 +000022
23namespace webrtc {
24
25class StatsCollectorInterface {
26 public:
27 virtual ~StatsCollectorInterface() {}
28
29 // Adds a local audio track that is used for getting some voice statistics.
30 virtual void AddLocalAudioTrack(AudioTrackInterface* audio_track,
31 uint32_t ssrc) = 0;
32
33 // Removes a local audio tracks that is used for getting some voice
34 // statistics.
35 virtual void RemoveLocalAudioTrack(AudioTrackInterface* audio_track,
36 uint32_t ssrc) = 0;
Harald Alvestrand1090e442020-10-05 07:01:09 +000037 virtual void GetStats(MediaStreamTrackInterface* track,
38 StatsReports* reports) = 0;
Harald Alvestrand445e6b02020-09-29 14:21:47 +000039};
40
41} // namespace webrtc
42
43#endif // PC_STATS_COLLECTOR_INTERFACE_H_