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

Side by Side Diff: webrtc/media/base/rtpdataengine.h

Issue 2437503004: Set actual transport overhead in rtp_rtcp (Closed)
Patch Set: Rename SignalTransportOverheadChanged to UpdateTransportOverhead. Created 4 years, 1 month 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
« no previous file with comments | « webrtc/media/base/mediachannel.h ('k') | webrtc/media/engine/fakewebrtccall.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 virtual bool SetReceive(bool receive) { 77 virtual bool SetReceive(bool receive) {
78 receiving_ = receive; 78 receiving_ = receive;
79 return true; 79 return true;
80 } 80 }
81 virtual void OnPacketReceived(rtc::CopyOnWriteBuffer* packet, 81 virtual void OnPacketReceived(rtc::CopyOnWriteBuffer* packet,
82 const rtc::PacketTime& packet_time); 82 const rtc::PacketTime& packet_time);
83 virtual void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet, 83 virtual void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet,
84 const rtc::PacketTime& packet_time) {} 84 const rtc::PacketTime& packet_time) {}
85 virtual void OnReadyToSend(bool ready) {} 85 virtual void OnReadyToSend(bool ready) {}
86 virtual void OnTransportOverheadChanged(int transport_overhead_per_packet) {}
86 virtual bool SendData( 87 virtual bool SendData(
87 const SendDataParams& params, 88 const SendDataParams& params,
88 const rtc::CopyOnWriteBuffer& payload, 89 const rtc::CopyOnWriteBuffer& payload,
89 SendDataResult* result); 90 SendDataResult* result);
90 91
91 private: 92 private:
92 void Construct(); 93 void Construct();
93 bool SetMaxSendBandwidth(int bps); 94 bool SetMaxSendBandwidth(int bps);
94 bool SetSendCodecs(const std::vector<DataCodec>& codecs); 95 bool SetSendCodecs(const std::vector<DataCodec>& codecs);
95 bool SetRecvCodecs(const std::vector<DataCodec>& codecs); 96 bool SetRecvCodecs(const std::vector<DataCodec>& codecs);
96 97
97 bool sending_; 98 bool sending_;
98 bool receiving_; 99 bool receiving_;
99 std::vector<DataCodec> send_codecs_; 100 std::vector<DataCodec> send_codecs_;
100 std::vector<DataCodec> recv_codecs_; 101 std::vector<DataCodec> recv_codecs_;
101 std::vector<StreamParams> send_streams_; 102 std::vector<StreamParams> send_streams_;
102 std::vector<StreamParams> recv_streams_; 103 std::vector<StreamParams> recv_streams_;
103 std::map<uint32_t, RtpClock*> rtp_clock_by_send_ssrc_; 104 std::map<uint32_t, RtpClock*> rtp_clock_by_send_ssrc_;
104 std::unique_ptr<rtc::RateLimiter> send_limiter_; 105 std::unique_ptr<rtc::RateLimiter> send_limiter_;
105 }; 106 };
106 107
107 } // namespace cricket 108 } // namespace cricket
108 109
109 #endif // WEBRTC_MEDIA_BASE_RTPDATAENGINE_H_ 110 #endif // WEBRTC_MEDIA_BASE_RTPDATAENGINE_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/mediachannel.h ('k') | webrtc/media/engine/fakewebrtccall.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698