Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.h

Issue 2357583002: Remove unnecessary interface TelephoneEventHandler (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 26 matching lines...) Expand all
37 // provides audio or video-specific data. The is_first_packet argument is true 37 // provides audio or video-specific data. The is_first_packet argument is true
38 // if this packet is either the first packet ever or the first in its frame. 38 // if this packet is either the first packet ever or the first in its frame.
39 virtual int32_t ParseRtpPacket(WebRtcRTPHeader* rtp_header, 39 virtual int32_t ParseRtpPacket(WebRtcRTPHeader* rtp_header,
40 const PayloadUnion& specific_payload, 40 const PayloadUnion& specific_payload,
41 bool is_red, 41 bool is_red,
42 const uint8_t* payload, 42 const uint8_t* payload,
43 size_t payload_length, 43 size_t payload_length,
44 int64_t timestamp_ms, 44 int64_t timestamp_ms,
45 bool is_first_packet) = 0; 45 bool is_first_packet) = 0;
46 46
47 virtual TelephoneEventHandler* GetTelephoneEventHandler() = 0;
48
49 // Retrieves the last known applicable frequency. 47 // Retrieves the last known applicable frequency.
50 virtual int GetPayloadTypeFrequency() const = 0; 48 virtual int GetPayloadTypeFrequency() const = 0;
51 49
52 // Computes the current dead-or-alive state. 50 // Computes the current dead-or-alive state.
53 virtual RTPAliveType ProcessDeadOrAlive( 51 virtual RTPAliveType ProcessDeadOrAlive(
54 uint16_t last_payload_length) const = 0; 52 uint16_t last_payload_length) const = 0;
55 53
56 // Returns true if we should report CSRC changes for this payload type. 54 // Returns true if we should report CSRC changes for this payload type.
57 // TODO(phoglund): should move out of here along with other payload stuff. 55 // TODO(phoglund): should move out of here along with other payload stuff.
58 virtual bool ShouldReportCsrcChanges(uint8_t payload_type) const = 0; 56 virtual bool ShouldReportCsrcChanges(uint8_t payload_type) const = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // packet. 92 // packet.
95 explicit RTPReceiverStrategy(RtpData* data_callback); 93 explicit RTPReceiverStrategy(RtpData* data_callback);
96 94
97 rtc::CriticalSection crit_sect_; 95 rtc::CriticalSection crit_sect_;
98 PayloadUnion last_payload_; 96 PayloadUnion last_payload_;
99 RtpData* data_callback_; 97 RtpData* data_callback_;
100 }; 98 };
101 } // namespace webrtc 99 } // namespace webrtc
102 100
103 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_STRATEGY_H_ 101 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_STRATEGY_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698