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

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

Issue 1363573002: Wire up transport sequence number / send time callbacks to webrtc via libjingle. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: . Created 5 years, 2 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 * libjingle 2 * libjingle
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 return true; 107 return true;
108 } 108 }
109 virtual bool SetReceive(bool receive) { 109 virtual bool SetReceive(bool receive) {
110 receiving_ = receive; 110 receiving_ = receive;
111 return true; 111 return true;
112 } 112 }
113 virtual void OnPacketReceived(rtc::Buffer* packet, 113 virtual void OnPacketReceived(rtc::Buffer* packet,
114 const rtc::PacketTime& packet_time); 114 const rtc::PacketTime& packet_time);
115 virtual void OnRtcpReceived(rtc::Buffer* packet, 115 virtual void OnRtcpReceived(rtc::Buffer* packet,
116 const rtc::PacketTime& packet_time) {} 116 const rtc::PacketTime& packet_time) {}
117 virtual void OnPacketSent(const rtc::SentPacket& packet_sent) {}
117 virtual void OnReadyToSend(bool ready) {} 118 virtual void OnReadyToSend(bool ready) {}
118 virtual bool SendData( 119 virtual bool SendData(
119 const SendDataParams& params, 120 const SendDataParams& params,
120 const rtc::Buffer& payload, 121 const rtc::Buffer& payload,
121 SendDataResult* result); 122 SendDataResult* result);
122 123
123 private: 124 private:
124 void Construct(rtc::Timing* timing); 125 void Construct(rtc::Timing* timing);
125 bool SetMaxSendBandwidth(int bps); 126 bool SetMaxSendBandwidth(int bps);
126 bool SetSendCodecs(const std::vector<DataCodec>& codecs); 127 bool SetSendCodecs(const std::vector<DataCodec>& codecs);
127 bool SetRecvCodecs(const std::vector<DataCodec>& codecs); 128 bool SetRecvCodecs(const std::vector<DataCodec>& codecs);
128 129
129 bool sending_; 130 bool sending_;
130 bool receiving_; 131 bool receiving_;
131 rtc::Timing* timing_; 132 rtc::Timing* timing_;
132 std::vector<DataCodec> send_codecs_; 133 std::vector<DataCodec> send_codecs_;
133 std::vector<DataCodec> recv_codecs_; 134 std::vector<DataCodec> recv_codecs_;
134 std::vector<StreamParams> send_streams_; 135 std::vector<StreamParams> send_streams_;
135 std::vector<StreamParams> recv_streams_; 136 std::vector<StreamParams> recv_streams_;
136 std::map<uint32, RtpClock*> rtp_clock_by_send_ssrc_; 137 std::map<uint32, RtpClock*> rtp_clock_by_send_ssrc_;
137 rtc::scoped_ptr<rtc::RateLimiter> send_limiter_; 138 rtc::scoped_ptr<rtc::RateLimiter> send_limiter_;
138 }; 139 };
139 140
140 } // namespace cricket 141 } // namespace cricket
141 142
142 #endif // TALK_MEDIA_BASE_RTPDATAENGINE_H_ 143 #endif // TALK_MEDIA_BASE_RTPDATAENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698