ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 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 | |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 11 | #ifndef API_STATS_RTC_STATS_COLLECTOR_CALLBACK_H_ |
| 12 | #define API_STATS_RTC_STATS_COLLECTOR_CALLBACK_H_ |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 13 | |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 14 | #include "api/scoped_refptr.h" |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 15 | #include "api/stats/rtc_stats_report.h" |
| 16 | #include "rtc_base/ref_count.h" |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 17 | |
| 18 | namespace webrtc { |
| 19 | |
Tomas Gunnarsson | e6de5ae | 2021-04-22 16:16:35 | [diff] [blame] | 20 | class RTCStatsCollectorCallback : public rtc::RefCountInterface { |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 21 | public: |
Mirko Bonadei | 79eb4dd | 2018-07-19 08:39:30 | [diff] [blame] | 22 | ~RTCStatsCollectorCallback() override = default; |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 23 | |
| 24 | virtual void OnStatsDelivered( |
| 25 | const rtc::scoped_refptr<const RTCStatsReport>& report) = 0; |
| 26 | }; |
| 27 | |
| 28 | } // namespace webrtc |
| 29 | |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 30 | #endif // API_STATS_RTC_STATS_COLLECTOR_CALLBACK_H_ |