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

Side by Side Diff: talk/session/media/channel.h

Issue 1494373004: Revert "Allow remote fingerprint update during a call" (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years 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 | « talk/app/webrtc/test/fakedtlsidentitystore.h ('k') | talk/session/media/channel.cc » ('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 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 // From TransportChannel 207 // From TransportChannel
208 void OnWritableState(TransportChannel* channel); 208 void OnWritableState(TransportChannel* channel);
209 virtual void OnChannelRead(TransportChannel* channel, 209 virtual void OnChannelRead(TransportChannel* channel,
210 const char* data, 210 const char* data,
211 size_t len, 211 size_t len,
212 const rtc::PacketTime& packet_time, 212 const rtc::PacketTime& packet_time,
213 int flags); 213 int flags);
214 void OnReadyToSend(TransportChannel* channel); 214 void OnReadyToSend(TransportChannel* channel);
215 215
216 void OnDtlsState(TransportChannel* channel, DtlsTransportState state);
217
218 bool PacketIsRtcp(const TransportChannel* channel, const char* data, 216 bool PacketIsRtcp(const TransportChannel* channel, const char* data,
219 size_t len); 217 size_t len);
220 bool SendPacket(bool rtcp, 218 bool SendPacket(bool rtcp,
221 rtc::Buffer* packet, 219 rtc::Buffer* packet,
222 const rtc::PacketOptions& options); 220 const rtc::PacketOptions& options);
223 virtual bool WantsPacket(bool rtcp, rtc::Buffer* packet); 221 virtual bool WantsPacket(bool rtcp, rtc::Buffer* packet);
224 void HandlePacket(bool rtcp, rtc::Buffer* packet, 222 void HandlePacket(bool rtcp, rtc::Buffer* packet,
225 const rtc::PacketTime& packet_time); 223 const rtc::PacketTime& packet_time);
226 224
227 void EnableMedia_w(); 225 void EnableMedia_w();
228 void DisableMedia_w(); 226 void DisableMedia_w();
229 void UpdateWritableState_w(); 227 void UpdateWritableState_w();
230 void ChannelWritable_w(); 228 void ChannelWritable_w();
231 void ChannelNotWritable_w(); 229 void ChannelNotWritable_w();
232 bool AddRecvStream_w(const StreamParams& sp); 230 bool AddRecvStream_w(const StreamParams& sp);
233 bool RemoveRecvStream_w(uint32_t ssrc); 231 bool RemoveRecvStream_w(uint32_t ssrc);
234 bool AddSendStream_w(const StreamParams& sp); 232 bool AddSendStream_w(const StreamParams& sp);
235 bool RemoveSendStream_w(uint32_t ssrc); 233 bool RemoveSendStream_w(uint32_t ssrc);
236 virtual bool ShouldSetupDtlsSrtp() const; 234 virtual bool ShouldSetupDtlsSrtp() const;
237 // Do the DTLS key expansion and impose it on the SRTP/SRTCP filters. 235 // Do the DTLS key expansion and impose it on the SRTP/SRTCP filters.
238 // |rtcp_channel| indicates whether to set up the RTP or RTCP filter. 236 // |rtcp_channel| indicates whether to set up the RTP or RTCP filter.
239 bool SetupDtlsSrtp(bool rtcp_channel); 237 bool SetupDtlsSrtp(bool rtcp_channel);
240 void MaybeSetupDtlsSrtp_w();
241 // Set the DTLS-SRTP cipher policy on this channel as appropriate. 238 // Set the DTLS-SRTP cipher policy on this channel as appropriate.
242 bool SetDtlsSrtpCryptoSuites(TransportChannel* tc, bool rtcp); 239 bool SetDtlsSrtpCryptoSuites(TransportChannel* tc, bool rtcp);
243 240
244 virtual void ChangeState() = 0; 241 virtual void ChangeState() = 0;
245 242
246 // Gets the content info appropriate to the channel (audio or video). 243 // Gets the content info appropriate to the channel (audio or video).
247 virtual const ContentInfo* GetFirstContent( 244 virtual const ContentInfo* GetFirstContent(
248 const SessionDescription* sdesc) = 0; 245 const SessionDescription* sdesc) = 0;
249 bool UpdateLocalStreams_w(const std::vector<StreamParams>& streams, 246 bool UpdateLocalStreams_w(const std::vector<StreamParams>& streams,
250 ContentAction action, 247 ContentAction action,
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 // SetSendParameters. 633 // SetSendParameters.
637 DataSendParameters last_send_params_; 634 DataSendParameters last_send_params_;
638 // Last DataRecvParameters sent down to the media_channel() via 635 // Last DataRecvParameters sent down to the media_channel() via
639 // SetRecvParameters. 636 // SetRecvParameters.
640 DataRecvParameters last_recv_params_; 637 DataRecvParameters last_recv_params_;
641 }; 638 };
642 639
643 } // namespace cricket 640 } // namespace cricket
644 641
645 #endif // TALK_SESSION_MEDIA_CHANNEL_H_ 642 #endif // TALK_SESSION_MEDIA_CHANNEL_H_
OLDNEW
« no previous file with comments | « talk/app/webrtc/test/fakedtlsidentitystore.h ('k') | talk/session/media/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698