| Index: talk/session/media/typingmonitor.h
|
| diff --git a/talk/session/media/typingmonitor.h b/talk/session/media/typingmonitor.h
|
| index 4beb8ec0ee3d9472a98e564e69b314cdc48bf399..76446c254b46d86223617d0c8d3ba90e4ccc8591 100644
|
| --- a/talk/session/media/typingmonitor.h
|
| +++ b/talk/session/media/typingmonitor.h
|
| @@ -25,60 +25,4 @@
|
| * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef TALK_SESSION_MEDIA_TYPINGMONITOR_H_
|
| -#define TALK_SESSION_MEDIA_TYPINGMONITOR_H_
|
| -
|
| -#include "talk/media/base/mediachannel.h"
|
| -#include "webrtc/base/messagehandler.h"
|
| -
|
| -namespace rtc {
|
| -class Thread;
|
| -}
|
| -
|
| -namespace cricket {
|
| -
|
| -class VoiceChannel;
|
| -class BaseChannel;
|
| -
|
| -struct TypingMonitorOptions {
|
| - int cost_per_typing;
|
| - int mute_period;
|
| - int penalty_decay;
|
| - int reporting_threshold;
|
| - int time_window;
|
| - int type_event_delay;
|
| - size_t min_participants;
|
| -};
|
| -
|
| -/**
|
| - * An object that observes a channel and listens for typing detection warnings,
|
| - * which can be configured to mute audio capture of that channel for some period
|
| - * of time. The purpose is to automatically mute someone if they are disturbing
|
| - * a conference with loud keystroke audio signals.
|
| - */
|
| -class TypingMonitor
|
| - : public rtc::MessageHandler, public sigslot::has_slots<> {
|
| - public:
|
| - TypingMonitor(VoiceChannel* channel, rtc::Thread* worker_thread,
|
| - const TypingMonitorOptions& params);
|
| - ~TypingMonitor();
|
| -
|
| - sigslot::signal2<BaseChannel*, bool> SignalMuted;
|
| -
|
| - void OnChannelMuted();
|
| -
|
| - private:
|
| - void OnVoiceChannelError(uint32 ssrc, VoiceMediaChannel::Error error);
|
| - void OnMessage(rtc::Message* msg);
|
| -
|
| - VoiceChannel* channel_;
|
| - rtc::Thread* worker_thread_;
|
| - int mute_period_;
|
| - int muted_at_;
|
| - bool has_pending_unmute_;
|
| -};
|
| -
|
| -} // namespace cricket
|
| -
|
| -#endif // TALK_SESSION_MEDIA_TYPINGMONITOR_H_
|
| -
|
| + // TODO(solenberg): Remove this file when it's no longer built in Chromium.
|
|
|