OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 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 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1149 enum Error { | 1149 enum Error { |
1150 ERROR_NONE = 0, // No error. | 1150 ERROR_NONE = 0, // No error. |
1151 ERROR_OTHER, // Other errors. | 1151 ERROR_OTHER, // Other errors. |
1152 ERROR_SEND_SRTP_ERROR = 200, // Generic SRTP failure. | 1152 ERROR_SEND_SRTP_ERROR = 200, // Generic SRTP failure. |
1153 ERROR_SEND_SRTP_AUTH_FAILED, // Failed to authenticate packets. | 1153 ERROR_SEND_SRTP_AUTH_FAILED, // Failed to authenticate packets. |
1154 ERROR_RECV_SRTP_ERROR, // Generic SRTP failure. | 1154 ERROR_RECV_SRTP_ERROR, // Generic SRTP failure. |
1155 ERROR_RECV_SRTP_AUTH_FAILED, // Failed to authenticate packets. | 1155 ERROR_RECV_SRTP_AUTH_FAILED, // Failed to authenticate packets. |
1156 ERROR_RECV_SRTP_REPLAY, // Packet replay detected. | 1156 ERROR_RECV_SRTP_REPLAY, // Packet replay detected. |
1157 }; | 1157 }; |
1158 | 1158 |
| 1159 DataMediaChannel() {} |
| 1160 DataMediaChannel(const MediaConfig& config) : MediaChannel(config) {} |
1159 virtual ~DataMediaChannel() {} | 1161 virtual ~DataMediaChannel() {} |
1160 | 1162 |
1161 virtual bool SetSendParameters(const DataSendParameters& params) = 0; | 1163 virtual bool SetSendParameters(const DataSendParameters& params) = 0; |
1162 virtual bool SetRecvParameters(const DataRecvParameters& params) = 0; | 1164 virtual bool SetRecvParameters(const DataRecvParameters& params) = 0; |
1163 | 1165 |
1164 // TODO(pthatcher): Implement this. | 1166 // TODO(pthatcher): Implement this. |
1165 virtual bool GetStats(DataMediaInfo* info) { return true; } | 1167 virtual bool GetStats(DataMediaInfo* info) { return true; } |
1166 | 1168 |
1167 virtual bool SetSend(bool send) = 0; | 1169 virtual bool SetSend(bool send) = 0; |
1168 virtual bool SetReceive(bool receive) = 0; | 1170 virtual bool SetReceive(bool receive) = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
1181 // Signal when the media channel is ready to send the stream. Arguments are: | 1183 // Signal when the media channel is ready to send the stream. Arguments are: |
1182 // writable(bool) | 1184 // writable(bool) |
1183 sigslot::signal1<bool> SignalReadyToSend; | 1185 sigslot::signal1<bool> SignalReadyToSend; |
1184 // Signal for notifying that the remote side has closed the DataChannel. | 1186 // Signal for notifying that the remote side has closed the DataChannel. |
1185 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; | 1187 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; |
1186 }; | 1188 }; |
1187 | 1189 |
1188 } // namespace cricket | 1190 } // namespace cricket |
1189 | 1191 |
1190 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ | 1192 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ |
OLD | NEW |