rtc_stats_collector_callback.h 951 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright 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. #ifndef API_STATS_RTC_STATS_COLLECTOR_CALLBACK_H_
  11. #define API_STATS_RTC_STATS_COLLECTOR_CALLBACK_H_
  12. #include "api/scoped_refptr.h"
  13. #include "api/stats/rtc_stats_report.h"
  14. #include "rtc_base/ref_count.h"
  15. namespace webrtc {
  16. class RTCStatsCollectorCallback : public virtual rtc::RefCountInterface {
  17. public:
  18. ~RTCStatsCollectorCallback() override = default;
  19. virtual void OnStatsDelivered(
  20. const rtc::scoped_refptr<const RTCStatsReport>& report) = 0;
  21. };
  22. } // namespace webrtc
  23. #endif // API_STATS_RTC_STATS_COLLECTOR_CALLBACK_H_