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

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

Issue 1610543002: Deleted unused enums MediaChannelOptions and VoiceMediaChannelOptions, (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | talk/media/webrtc/webrtcvideoengine2_unittest.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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 const std::vector<RtpHeaderExtension>& extensions, 434 const std::vector<RtpHeaderExtension>& extensions,
435 const std::string& name) { 435 const std::string& name) {
436 for (std::vector<RtpHeaderExtension>::const_iterator it = extensions.begin(); 436 for (std::vector<RtpHeaderExtension>::const_iterator it = extensions.begin();
437 it != extensions.end(); ++it) { 437 it != extensions.end(); ++it) {
438 if (it->uri == name) 438 if (it->uri == name)
439 return &(*it); 439 return &(*it);
440 } 440 }
441 return NULL; 441 return NULL;
442 } 442 }
443 443
444 enum MediaChannelOptions {
445 // Tune the stream for conference mode.
446 OPT_CONFERENCE = 0x0001
447 };
448
449 enum VoiceMediaChannelOptions {
450 // Tune the audio stream for vcs with different target levels.
451 OPT_AGC_MINUS_10DB = 0x80000000
452 };
453
454 class MediaChannel : public sigslot::has_slots<> { 444 class MediaChannel : public sigslot::has_slots<> {
455 public: 445 public:
456 class NetworkInterface { 446 class NetworkInterface {
457 public: 447 public:
458 enum SocketType { ST_RTP, ST_RTCP }; 448 enum SocketType { ST_RTP, ST_RTCP };
459 virtual bool SendPacket(rtc::Buffer* packet, 449 virtual bool SendPacket(rtc::Buffer* packet,
460 const rtc::PacketOptions& options) = 0; 450 const rtc::PacketOptions& options) = 0;
461 virtual bool SendRtcp(rtc::Buffer* packet, 451 virtual bool SendRtcp(rtc::Buffer* packet,
462 const rtc::PacketOptions& options) = 0; 452 const rtc::PacketOptions& options) = 0;
463 virtual int SetOption(SocketType type, rtc::Socket::Option opt, 453 virtual int SetOption(SocketType type, rtc::Socket::Option opt,
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 // Signal when the media channel is ready to send the stream. Arguments are: 1208 // Signal when the media channel is ready to send the stream. Arguments are:
1219 // writable(bool) 1209 // writable(bool)
1220 sigslot::signal1<bool> SignalReadyToSend; 1210 sigslot::signal1<bool> SignalReadyToSend;
1221 // Signal for notifying that the remote side has closed the DataChannel. 1211 // Signal for notifying that the remote side has closed the DataChannel.
1222 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; 1212 sigslot::signal1<uint32_t> SignalStreamClosedRemotely;
1223 }; 1213 };
1224 1214
1225 } // namespace cricket 1215 } // namespace cricket
1226 1216
1227 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ 1217 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_
OLDNEW
« no previous file with comments | « no previous file | talk/media/webrtc/webrtcvideoengine2_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698