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

Unified Diff: talk/session/media/typingmonitor.h

Issue 1327033002: Remove unused TypingMonitor class. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « talk/session/media/channel_unittest.cc ('k') | talk/session/media/typingmonitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « talk/session/media/channel_unittest.cc ('k') | talk/session/media/typingmonitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698