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 26 matching lines...) Expand all Loading... |
37 class MediaStreamTrack; | 37 class MediaStreamTrack; |
38 class WebRTCDTMFSenderHandler; | 38 class WebRTCDTMFSenderHandler; |
39 class WebRTCPeerConnectionHandler; | 39 class WebRTCPeerConnectionHandler; |
40 | 40 |
41 class RTCDTMFSender FINAL | 41 class RTCDTMFSender FINAL |
42 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<RTCDTMFSe
nder> | 42 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<RTCDTMFSe
nder> |
43 , public EventTargetWithInlineData | 43 , public EventTargetWithInlineData |
44 , public WebRTCDTMFSenderHandlerClient | 44 , public WebRTCDTMFSenderHandlerClient |
45 , public ActiveDOMObject { | 45 , public ActiveDOMObject { |
46 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollectedWi
llBeGarbageCollectedFinalized<RTCDTMFSender>); | 46 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollectedWi
llBeGarbageCollectedFinalized<RTCDTMFSender>); |
| 47 DEFINE_WRAPPERTYPEINFO(); |
47 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(RTCDTMFSender); | 48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(RTCDTMFSender); |
48 public: | 49 public: |
49 static RTCDTMFSender* create(ExecutionContext*, WebRTCPeerConnectionHandler*
, MediaStreamTrack*, ExceptionState&); | 50 static RTCDTMFSender* create(ExecutionContext*, WebRTCPeerConnectionHandler*
, MediaStreamTrack*, ExceptionState&); |
50 virtual ~RTCDTMFSender(); | 51 virtual ~RTCDTMFSender(); |
51 | 52 |
52 bool canInsertDTMF() const; | 53 bool canInsertDTMF() const; |
53 MediaStreamTrack* track() const; | 54 MediaStreamTrack* track() const; |
54 String toneBuffer() const; | 55 String toneBuffer() const; |
55 long duration() const { return m_duration; } | 56 long duration() const { return m_duration; } |
56 long interToneGap() const { return m_interToneGap; } | 57 long interToneGap() const { return m_interToneGap; } |
(...skipping 30 matching lines...) Expand all Loading... |
87 | 88 |
88 bool m_stopped; | 89 bool m_stopped; |
89 | 90 |
90 Timer<RTCDTMFSender> m_scheduledEventTimer; | 91 Timer<RTCDTMFSender> m_scheduledEventTimer; |
91 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; | 92 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; |
92 }; | 93 }; |
93 | 94 |
94 } // namespace blink | 95 } // namespace blink |
95 | 96 |
96 #endif // RTCDTMFSender_h | 97 #endif // RTCDTMFSender_h |
OLD | NEW |