| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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_CALL_H_ | 10 #ifndef WEBRTC_CALL_H_ |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 virtual DeliveryStatus DeliverPacket(MediaType media_type, | 49 virtual DeliveryStatus DeliverPacket(MediaType media_type, |
| 50 const uint8_t* packet, | 50 const uint8_t* packet, |
| 51 size_t length, | 51 size_t length, |
| 52 const PacketTime& packet_time) = 0; | 52 const PacketTime& packet_time) = 0; |
| 53 | 53 |
| 54 protected: | 54 protected: |
| 55 virtual ~PacketReceiver() {} | 55 virtual ~PacketReceiver() {} |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 // Callback interface for reporting when a system overuse is detected. | |
| 59 class LoadObserver { | |
| 60 public: | |
| 61 enum Load { kOveruse, kUnderuse }; | |
| 62 | |
| 63 // Triggered when overuse is detected or when we believe the system can take | |
| 64 // more load. | |
| 65 virtual void OnLoadUpdate(Load load) = 0; | |
| 66 | |
| 67 protected: | |
| 68 virtual ~LoadObserver() {} | |
| 69 }; | |
| 70 | |
| 71 // A Call instance can contain several send and/or receive streams. All streams | 58 // A Call instance can contain several send and/or receive streams. All streams |
| 72 // are assumed to have the same remote endpoint and will share bitrate estimates | 59 // are assumed to have the same remote endpoint and will share bitrate estimates |
| 73 // etc. | 60 // etc. |
| 74 class Call { | 61 class Call { |
| 75 public: | 62 public: |
| 76 struct Config { | 63 struct Config { |
| 77 explicit Config(RtcEventLog* event_log) : event_log(event_log) { | 64 explicit Config(RtcEventLog* event_log) : event_log(event_log) { |
| 78 RTC_DCHECK(event_log); | 65 RTC_DCHECK(event_log); |
| 79 } | 66 } |
| 80 | 67 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 const rtc::NetworkRoute& network_route) = 0; | 152 const rtc::NetworkRoute& network_route) = 0; |
| 166 | 153 |
| 167 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; | 154 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; |
| 168 | 155 |
| 169 virtual ~Call() {} | 156 virtual ~Call() {} |
| 170 }; | 157 }; |
| 171 | 158 |
| 172 } // namespace webrtc | 159 } // namespace webrtc |
| 173 | 160 |
| 174 #endif // WEBRTC_CALL_H_ | 161 #endif // WEBRTC_CALL_H_ |
| OLD | NEW |