stats_collector_interface.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  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. // This file contains an interface for the (obsolete) StatsCollector class that
  11. // is used by compilation units that do not wish to depend on the StatsCollector
  12. // implementation.
  13. #ifndef PC_STATS_COLLECTOR_INTERFACE_H_
  14. #define PC_STATS_COLLECTOR_INTERFACE_H_
  15. #include <stdint.h>
  16. #include "api/media_stream_interface.h"
  17. namespace webrtc {
  18. class StatsCollectorInterface {
  19. public:
  20. virtual ~StatsCollectorInterface() {}
  21. // Adds a local audio track that is used for getting some voice statistics.
  22. virtual void AddLocalAudioTrack(AudioTrackInterface* audio_track,
  23. uint32_t ssrc) = 0;
  24. // Removes a local audio tracks that is used for getting some voice
  25. // statistics.
  26. virtual void RemoveLocalAudioTrack(AudioTrackInterface* audio_track,
  27. uint32_t ssrc) = 0;
  28. };
  29. } // namespace webrtc
  30. #endif // PC_STATS_COLLECTOR_INTERFACE_H_