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 27 matching lines...) Expand all Loading... |
38 class PacketReceiver { | 38 class PacketReceiver { |
39 public: | 39 public: |
40 enum DeliveryStatus { | 40 enum DeliveryStatus { |
41 DELIVERY_OK, | 41 DELIVERY_OK, |
42 DELIVERY_UNKNOWN_SSRC, | 42 DELIVERY_UNKNOWN_SSRC, |
43 DELIVERY_PACKET_ERROR, | 43 DELIVERY_PACKET_ERROR, |
44 }; | 44 }; |
45 | 45 |
46 virtual DeliveryStatus DeliverPacket(MediaType media_type, | 46 virtual DeliveryStatus DeliverPacket(MediaType media_type, |
47 const uint8_t* packet, | 47 const uint8_t* packet, |
48 size_t length) = 0; | 48 size_t length, |
| 49 const PacketTime& packet_time) = 0; |
| 50 |
49 protected: | 51 protected: |
50 virtual ~PacketReceiver() {} | 52 virtual ~PacketReceiver() {} |
51 }; | 53 }; |
52 | 54 |
53 // Callback interface for reporting when a system overuse is detected. | 55 // Callback interface for reporting when a system overuse is detected. |
54 class LoadObserver { | 56 class LoadObserver { |
55 public: | 57 public: |
56 enum Load { kOveruse, kUnderuse }; | 58 enum Load { kOveruse, kUnderuse }; |
57 | 59 |
58 // Triggered when overuse is detected or when we believe the system can take | 60 // Triggered when overuse is detected or when we believe the system can take |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 virtual void SetBitrateConfig( | 140 virtual void SetBitrateConfig( |
139 const Config::BitrateConfig& bitrate_config) = 0; | 141 const Config::BitrateConfig& bitrate_config) = 0; |
140 virtual void SignalNetworkState(NetworkState state) = 0; | 142 virtual void SignalNetworkState(NetworkState state) = 0; |
141 | 143 |
142 virtual ~Call() {} | 144 virtual ~Call() {} |
143 }; | 145 }; |
144 | 146 |
145 } // namespace webrtc | 147 } // namespace webrtc |
146 | 148 |
147 #endif // WEBRTC_CALL_H_ | 149 #endif // WEBRTC_CALL_H_ |
OLD | NEW |