OLD | NEW |
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // EventTarget | 64 // EventTarget |
65 virtual const AtomicString& interfaceName() const OVERRIDE; | 65 virtual const AtomicString& interfaceName() const OVERRIDE; |
66 virtual ExecutionContext* executionContext() const OVERRIDE; | 66 virtual ExecutionContext* executionContext() const OVERRIDE; |
67 | 67 |
68 // ActiveDOMObject | 68 // ActiveDOMObject |
69 virtual void stop() OVERRIDE; | 69 virtual void stop() OVERRIDE; |
70 | 70 |
71 private: | 71 private: |
72 RTCDTMFSender(ExecutionContext*, PassRefPtr<MediaStreamTrack>, PassOwnPtr<bl
ink::WebRTCDTMFSenderHandler>); | 72 RTCDTMFSender(ExecutionContext*, PassRefPtr<MediaStreamTrack>, PassOwnPtr<bl
ink::WebRTCDTMFSenderHandler>); |
73 | 73 |
74 void scheduleDispatchEvent(PassRefPtr<Event>); | 74 void scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event>); |
75 void scheduledEventTimerFired(Timer<RTCDTMFSender>*); | 75 void scheduledEventTimerFired(Timer<RTCDTMFSender>*); |
76 | 76 |
77 // blink::WebRTCDTMFSenderHandlerClient | 77 // blink::WebRTCDTMFSenderHandlerClient |
78 virtual void didPlayTone(const blink::WebString&) OVERRIDE; | 78 virtual void didPlayTone(const blink::WebString&) OVERRIDE; |
79 | 79 |
80 RefPtr<MediaStreamTrack> m_track; | 80 RefPtr<MediaStreamTrack> m_track; |
81 long m_duration; | 81 long m_duration; |
82 long m_interToneGap; | 82 long m_interToneGap; |
83 | 83 |
84 OwnPtr<blink::WebRTCDTMFSenderHandler> m_handler; | 84 OwnPtr<blink::WebRTCDTMFSenderHandler> m_handler; |
85 | 85 |
86 bool m_stopped; | 86 bool m_stopped; |
87 | 87 |
88 Timer<RTCDTMFSender> m_scheduledEventTimer; | 88 Timer<RTCDTMFSender> m_scheduledEventTimer; |
89 Vector<RefPtr<Event> > m_scheduledEvents; | 89 WillBePersistentHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; |
90 }; | 90 }; |
91 | 91 |
92 } // namespace WebCore | 92 } // namespace WebCore |
93 | 93 |
94 #endif // RTCDTMFSender_h | 94 #endif // RTCDTMFSender_h |
OLD | NEW |