OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 | 10 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 protected: | 89 protected: |
90 // The data callback is where we should send received payload data. | 90 // The data callback is where we should send received payload data. |
91 // See ParseRtpPacket. This class does not claim ownership of the callback. | 91 // See ParseRtpPacket. This class does not claim ownership of the callback. |
92 // Implementations must NOT hold any critical sections while calling the | 92 // Implementations must NOT hold any critical sections while calling the |
93 // callback. | 93 // callback. |
94 // | 94 // |
95 // Note: Implementations may call the callback for other reasons than calls | 95 // Note: Implementations may call the callback for other reasons than calls |
96 // to ParseRtpPacket, for instance if the implementation somehow recovers a | 96 // to ParseRtpPacket, for instance if the implementation somehow recovers a |
97 // packet. | 97 // packet. |
98 RTPReceiverStrategy(RtpData* data_callback); | 98 explicit RTPReceiverStrategy(RtpData* data_callback); |
99 | 99 |
100 rtc::scoped_ptr<CriticalSectionWrapper> crit_sect_; | 100 rtc::scoped_ptr<CriticalSectionWrapper> crit_sect_; |
101 PayloadUnion last_payload_; | 101 PayloadUnion last_payload_; |
102 RtpData* data_callback_; | 102 RtpData* data_callback_; |
103 }; | 103 }; |
104 } // namespace webrtc | 104 } // namespace webrtc |
105 | 105 |
106 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_STRATEGY_H_ | 106 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_STRATEGY_H_ |
OLD | NEW |