Index: webrtc/logging/rtc_event_log/rtc_event_log_parser.h |
diff --git a/webrtc/logging/rtc_event_log/rtc_event_log_parser.h b/webrtc/logging/rtc_event_log/rtc_event_log_parser.h |
index 1460a4ca8358d4c45720da7469dfd01443f55509..bb3c406d65c3cbaba688b0ca5d97c25a6ba0945e 100644 |
--- a/webrtc/logging/rtc_event_log/rtc_event_log_parser.h |
+++ b/webrtc/logging/rtc_event_log/rtc_event_log_parser.h |
@@ -35,6 +35,21 @@ class ParsedRtcEventLog { |
friend class RtcEventLogTestHelper; |
public: |
+ struct BweProbeClusterCreatedEvent { |
+ uint64_t timestamp; |
+ uint32_t id; |
+ uint64_t bitrate_bps; |
+ uint32_t min_packets; |
+ uint32_t min_bytes; |
+ }; |
+ |
+ struct BweProbeResultEvent { |
+ uint64_t timestamp; |
+ uint32_t id; |
+ rtc::Optional<uint64_t> bitrate_bps; |
+ rtc::Optional<ProbeFailureReason> failure_reason; |
+ }; |
+ |
enum EventType { |
UNKNOWN_EVENT = 0, |
LOG_START = 1, |
@@ -142,6 +157,11 @@ class ParsedRtcEventLog { |
size_t index, |
AudioNetworkAdaptor::EncoderRuntimeConfig* config) const; |
+ ParsedRtcEventLog::BweProbeClusterCreatedEvent GetBweProbeClusterCreated( |
+ size_t index) const; |
+ |
+ ParsedRtcEventLog::BweProbeResultEvent GetBweProbeResult(size_t index) const; |
+ |
private: |
std::vector<rtclog::Event> events_; |
}; |