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