2017-01-23 04:56:25 -08:00
|
|
|
/*
|
|
|
|
|
* Copyright 2016 The WebRTC Project Authors. All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
#ifndef API_STATS_RTC_STATS_COLLECTOR_CALLBACK_H_
|
|
|
|
|
#define API_STATS_RTC_STATS_COLLECTOR_CALLBACK_H_
|
2017-01-23 04:56:25 -08:00
|
|
|
|
2019-01-25 20:26:48 +01:00
|
|
|
#include "api/scoped_refptr.h"
|
2019-01-11 09:11:00 -08:00
|
|
|
#include "api/stats/rtc_stats_report.h"
|
|
|
|
|
#include "rtc_base/ref_count.h"
|
2017-01-23 04:56:25 -08:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2024-06-06 11:01:02 +00:00
|
|
|
class RTCStatsCollectorCallback : public RefCountInterface {
|
2017-01-23 04:56:25 -08:00
|
|
|
public:
|
2018-07-19 10:39:30 +02:00
|
|
|
~RTCStatsCollectorCallback() override = default;
|
2017-01-23 04:56:25 -08:00
|
|
|
|
|
|
|
|
virtual void OnStatsDelivered(
|
|
|
|
|
const rtc::scoped_refptr<const RTCStatsReport>& report) = 0;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
#endif // API_STATS_RTC_STATS_COLLECTOR_CALLBACK_H_
|