2019-02-26 15:19:07 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2019 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-03-22 12:34:25 +01:00
|
|
|
#ifndef API_TEST_STATS_OBSERVER_INTERFACE_H_
|
|
|
|
|
#define API_TEST_STATS_OBSERVER_INTERFACE_H_
|
2019-02-26 15:19:07 +01:00
|
|
|
|
2019-05-08 10:52:52 +02:00
|
|
|
#include <string>
|
|
|
|
|
|
2019-02-26 15:19:07 +01:00
|
|
|
#include "api/stats_types.h"
|
|
|
|
|
|
|
|
|
|
namespace webrtc {
|
2019-03-20 11:11:08 +01:00
|
|
|
namespace webrtc_pc_e2e {
|
2019-02-26 15:19:07 +01:00
|
|
|
|
2019-03-22 12:34:25 +01:00
|
|
|
// API is in development and can be changed without notice.
|
2019-02-26 15:19:07 +01:00
|
|
|
class StatsObserverInterface {
|
|
|
|
|
public:
|
|
|
|
|
virtual ~StatsObserverInterface() = default;
|
|
|
|
|
|
|
|
|
|
// Method called when stats reports are available for the PeerConnection
|
|
|
|
|
// identified by |pc_label|.
|
2019-05-08 10:52:52 +02:00
|
|
|
virtual void OnStatsReports(const std::string& pc_label,
|
2019-02-26 15:19:07 +01:00
|
|
|
const StatsReports& reports) = 0;
|
|
|
|
|
};
|
|
|
|
|
|
2019-03-20 11:11:08 +01:00
|
|
|
} // namespace webrtc_pc_e2e
|
2019-02-26 15:19:07 +01:00
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2019-03-22 12:34:25 +01:00
|
|
|
#endif // API_TEST_STATS_OBSERVER_INTERFACE_H_
|