OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_ | 10 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_ |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 RTCP_EVENT = 4, | 68 RTCP_EVENT = 4, |
69 AUDIO_PLAYOUT_EVENT = 5, | 69 AUDIO_PLAYOUT_EVENT = 5, |
70 LOSS_BASED_BWE_UPDATE = 6, | 70 LOSS_BASED_BWE_UPDATE = 6, |
71 DELAY_BASED_BWE_UPDATE = 7, | 71 DELAY_BASED_BWE_UPDATE = 7, |
72 VIDEO_RECEIVER_CONFIG_EVENT = 8, | 72 VIDEO_RECEIVER_CONFIG_EVENT = 8, |
73 VIDEO_SENDER_CONFIG_EVENT = 9, | 73 VIDEO_SENDER_CONFIG_EVENT = 9, |
74 AUDIO_RECEIVER_CONFIG_EVENT = 10, | 74 AUDIO_RECEIVER_CONFIG_EVENT = 10, |
75 AUDIO_SENDER_CONFIG_EVENT = 11, | 75 AUDIO_SENDER_CONFIG_EVENT = 11, |
76 AUDIO_NETWORK_ADAPTATION_EVENT = 16, | 76 AUDIO_NETWORK_ADAPTATION_EVENT = 16, |
77 BWE_PROBE_CLUSTER_CREATED_EVENT = 17, | 77 BWE_PROBE_CLUSTER_CREATED_EVENT = 17, |
78 BWE_PROBE_RESULT_EVENT = 18 | 78 BWE_PROBE_RESULT_EVENT = 18, |
| 79 HOST_LOOKUP_EVENT = 19 |
79 }; | 80 }; |
80 | 81 |
81 enum class MediaType { ANY, AUDIO, VIDEO, DATA }; | 82 enum class MediaType { ANY, AUDIO, VIDEO, DATA }; |
82 | 83 |
83 // Reads an RtcEventLog file and returns true if parsing was successful. | 84 // Reads an RtcEventLog file and returns true if parsing was successful. |
84 bool ParseFile(const std::string& file_name); | 85 bool ParseFile(const std::string& file_name); |
85 | 86 |
86 // Reads an RtcEventLog from a string and returns true if successful. | 87 // Reads an RtcEventLog from a string and returns true if successful. |
87 bool ParseString(const std::string& s); | 88 bool ParseString(const std::string& s); |
88 | 89 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 204 |
204 // To find configured extensions map for given stream, what are needed to | 205 // To find configured extensions map for given stream, what are needed to |
205 // parse a header. | 206 // parse a header. |
206 typedef std::pair<uint32_t, webrtc::PacketDirection> StreamId; | 207 typedef std::pair<uint32_t, webrtc::PacketDirection> StreamId; |
207 std::map<StreamId, webrtc::RtpHeaderExtensionMap*> rtp_extensions_maps_; | 208 std::map<StreamId, webrtc::RtpHeaderExtensionMap*> rtp_extensions_maps_; |
208 }; | 209 }; |
209 | 210 |
210 } // namespace webrtc | 211 } // namespace webrtc |
211 | 212 |
212 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_ | 213 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_ |
OLD | NEW |