ossu | 25e4ac7 | 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 | |
| 11 | #ifndef WEBRTC_API_STATS_RTCSTATSCOLLECTORCALLBACK_H_ |
| 12 | #define WEBRTC_API_STATS_RTCSTATSCOLLECTORCALLBACK_H_ |
| 13 | |
| 14 | #include "webrtc/api/stats/rtcstatsreport.h" |
Edward Lemur | 76de83e | 2017-07-06 17:44:34 | [diff] [blame] | 15 | #include "webrtc/rtc_base/refcount.h" |
| 16 | #include "webrtc/rtc_base/scoped_ref_ptr.h" |
ossu | 25e4ac7 | 2017-01-23 12:56:25 | [diff] [blame] | 17 | |
| 18 | namespace webrtc { |
| 19 | |
| 20 | class RTCStatsCollectorCallback : public virtual rtc::RefCountInterface { |
| 21 | public: |
| 22 | virtual ~RTCStatsCollectorCallback() {} |
| 23 | |
| 24 | virtual void OnStatsDelivered( |
| 25 | const rtc::scoped_refptr<const RTCStatsReport>& report) = 0; |
| 26 | }; |
| 27 | |
| 28 | } // namespace webrtc |
| 29 | |
| 30 | #endif // WEBRTC_API_STATS_RTCSTATSCOLLECTORCALLBACK_H_ |