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

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

Issue 1269863005: MediaController/Call instantiation. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: nullptr Created 5 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 * 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 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 ERROR_REC_SRTP_ERROR, // Generic sender SRTP failure. 1162 ERROR_REC_SRTP_ERROR, // Generic sender SRTP failure.
1163 ERROR_REC_SRTP_AUTH_FAILED, // Failed to authenticate packets. 1163 ERROR_REC_SRTP_AUTH_FAILED, // Failed to authenticate packets.
1164 ERROR_REC_CPU_MAX_CANT_DOWNGRADE, // Can't downgrade capture anymore. 1164 ERROR_REC_CPU_MAX_CANT_DOWNGRADE, // Can't downgrade capture anymore.
1165 ERROR_PLAY_SRTP_ERROR = 200, // Generic receiver SRTP failure. 1165 ERROR_PLAY_SRTP_ERROR = 200, // Generic receiver SRTP failure.
1166 ERROR_PLAY_SRTP_AUTH_FAILED, // Failed to authenticate packets. 1166 ERROR_PLAY_SRTP_AUTH_FAILED, // Failed to authenticate packets.
1167 ERROR_PLAY_SRTP_REPLAY, // Packet replay detected. 1167 ERROR_PLAY_SRTP_REPLAY, // Packet replay detected.
1168 }; 1168 };
1169 1169
1170 VideoMediaChannel() : renderer_(NULL) {} 1170 VideoMediaChannel() : renderer_(NULL) {}
1171 virtual ~VideoMediaChannel() {} 1171 virtual ~VideoMediaChannel() {}
1172 // Allow video channel to unhook itself from an associated voice channel.
1173 virtual void DetachVoiceChannel() = 0;
1174 // TODO(pthatcher): Remove SetSendCodecs, 1172 // TODO(pthatcher): Remove SetSendCodecs,
1175 // SetSendRtpHeaderExtensions, SetMaxSendBandwidth, and SetOptions 1173 // SetSendRtpHeaderExtensions, SetMaxSendBandwidth, and SetOptions
1176 // once all implementations implement SetSendParameters. 1174 // once all implementations implement SetSendParameters.
1177 virtual bool SetSendParameters(const VideoSendParameters& params) { 1175 virtual bool SetSendParameters(const VideoSendParameters& params) {
1178 return (SetSendCodecs(params.codecs) && 1176 return (SetSendCodecs(params.codecs) &&
1179 SetSendRtpHeaderExtensions(params.extensions) && 1177 SetSendRtpHeaderExtensions(params.extensions) &&
1180 SetMaxSendBandwidth(params.max_bandwidth_bps) && 1178 SetMaxSendBandwidth(params.max_bandwidth_bps) &&
1181 SetOptions(params.options)); 1179 SetOptions(params.options));
1182 } 1180 }
1183 // TODO(pthatcher): Remove SetRecvCodecs and 1181 // TODO(pthatcher): Remove SetRecvCodecs and
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1362 // Signal when the media channel is ready to send the stream. Arguments are: 1360 // Signal when the media channel is ready to send the stream. Arguments are:
1363 // writable(bool) 1361 // writable(bool)
1364 sigslot::signal1<bool> SignalReadyToSend; 1362 sigslot::signal1<bool> SignalReadyToSend;
1365 // Signal for notifying that the remote side has closed the DataChannel. 1363 // Signal for notifying that the remote side has closed the DataChannel.
1366 sigslot::signal1<uint32> SignalStreamClosedRemotely; 1364 sigslot::signal1<uint32> SignalStreamClosedRemotely;
1367 }; 1365 };
1368 1366
1369 } // namespace cricket 1367 } // namespace cricket
1370 1368
1371 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ 1369 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698