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

Side by Side Diff: third_party/WebKit/Source/modules/peerconnection/RTCDTMFSender.h

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 4 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 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // ActiveDOMObject 69 // ActiveDOMObject
70 void stop() override; 70 void stop() override;
71 71
72 DECLARE_VIRTUAL_TRACE(); 72 DECLARE_VIRTUAL_TRACE();
73 73
74 private: 74 private:
75 RTCDTMFSender(ExecutionContext*, MediaStreamTrack*, std::unique_ptr<WebRTCDT MFSenderHandler>); 75 RTCDTMFSender(ExecutionContext*, MediaStreamTrack*, std::unique_ptr<WebRTCDT MFSenderHandler>);
76 void dispose(); 76 void dispose();
77 77
78 void scheduleDispatchEvent(Event*); 78 void scheduleDispatchEvent(Event*);
79 void scheduledEventTimerFired(Timer<RTCDTMFSender>*); 79 void scheduledEventTimerFired(TimerBase*);
80 80
81 // WebRTCDTMFSenderHandlerClient 81 // WebRTCDTMFSenderHandlerClient
82 void didPlayTone(const WebString&) override; 82 void didPlayTone(const WebString&) override;
83 83
84 Member<MediaStreamTrack> m_track; 84 Member<MediaStreamTrack> m_track;
85 int m_duration; 85 int m_duration;
86 int m_interToneGap; 86 int m_interToneGap;
87 87
88 std::unique_ptr<WebRTCDTMFSenderHandler> m_handler; 88 std::unique_ptr<WebRTCDTMFSenderHandler> m_handler;
89 89
90 bool m_stopped; 90 bool m_stopped;
91 91
92 Timer<RTCDTMFSender> m_scheduledEventTimer; 92 Timer<RTCDTMFSender> m_scheduledEventTimer;
93 HeapVector<Member<Event>> m_scheduledEvents; 93 HeapVector<Member<Event>> m_scheduledEvents;
94 }; 94 };
95 95
96 } // namespace blink 96 } // namespace blink
97 97
98 #endif // RTCDTMFSender_h 98 #endif // RTCDTMFSender_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698