blob: c3e08245ead01bed300762f6eec64439d57afc6d [file] [log] [blame]
ossu7bb87ee2017-01-23 04:56:25 -08001/*
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
Steve Anton10542f22019-01-11 09:11:00 -080011#ifndef API_STATS_RTC_STATS_COLLECTOR_CALLBACK_H_
12#define API_STATS_RTC_STATS_COLLECTOR_CALLBACK_H_
ossu7bb87ee2017-01-23 04:56:25 -080013
Mirko Bonadeid9708072019-01-25 20:26:48 +010014#include "api/scoped_refptr.h"
Steve Anton10542f22019-01-11 09:11:00 -080015#include "api/stats/rtc_stats_report.h"
16#include "rtc_base/ref_count.h"
ossu7bb87ee2017-01-23 04:56:25 -080017
18namespace webrtc {
19
20class RTCStatsCollectorCallback : public virtual rtc::RefCountInterface {
21 public:
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020022 ~RTCStatsCollectorCallback() override = default;
ossu7bb87ee2017-01-23 04:56:25 -080023
24 virtual void OnStatsDelivered(
25 const rtc::scoped_refptr<const RTCStatsReport>& report) = 0;
26};
27
28} // namespace webrtc
29
Steve Anton10542f22019-01-11 09:11:00 -080030#endif // API_STATS_RTC_STATS_COLLECTOR_CALLBACK_H_