blob: 98c8dd937f2a9e91ed2729d1cf8a30299b636bb9 [file] [log] [blame]
Mirko Bonadei12ae4f42019-02-26 15:19:07 +01001/*
2 * Copyright (c) 2019 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
Artem Titovd57628f2019-03-22 12:34:25 +010011#ifndef API_TEST_STATS_OBSERVER_INTERFACE_H_
12#define API_TEST_STATS_OBSERVER_INTERFACE_H_
Mirko Bonadei12ae4f42019-02-26 15:19:07 +010013
Mirko Bonadei60f14ce2019-05-08 10:52:52 +020014#include <string>
15
Mirko Bonadei12ae4f42019-02-26 15:19:07 +010016#include "api/stats_types.h"
17
18namespace webrtc {
Artem Titov0b443142019-03-20 11:11:08 +010019namespace webrtc_pc_e2e {
Mirko Bonadei12ae4f42019-02-26 15:19:07 +010020
Artem Titovd57628f2019-03-22 12:34:25 +010021// API is in development and can be changed without notice.
Mirko Bonadei12ae4f42019-02-26 15:19:07 +010022class StatsObserverInterface {
23 public:
24 virtual ~StatsObserverInterface() = default;
25
26 // Method called when stats reports are available for the PeerConnection
27 // identified by |pc_label|.
Mirko Bonadei60f14ce2019-05-08 10:52:52 +020028 virtual void OnStatsReports(const std::string& pc_label,
Mirko Bonadei12ae4f42019-02-26 15:19:07 +010029 const StatsReports& reports) = 0;
30};
31
Artem Titov0b443142019-03-20 11:11:08 +010032} // namespace webrtc_pc_e2e
Mirko Bonadei12ae4f42019-02-26 15:19:07 +010033} // namespace webrtc
34
Artem Titovd57628f2019-03-22 12:34:25 +010035#endif // API_TEST_STATS_OBSERVER_INTERFACE_H_