| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 protected: | 76 protected: |
| 77 DtmfSender(AudioTrackInterface* track, | 77 DtmfSender(AudioTrackInterface* track, |
| 78 rtc::Thread* signaling_thread, | 78 rtc::Thread* signaling_thread, |
| 79 DtmfProviderInterface* provider); | 79 DtmfProviderInterface* provider); |
| 80 virtual ~DtmfSender(); | 80 virtual ~DtmfSender(); |
| 81 | 81 |
| 82 private: | 82 private: |
| 83 DtmfSender(); | 83 DtmfSender(); |
| 84 | 84 |
| 85 // Implements MessageHandler. | 85 // Implements MessageHandler. |
| 86 virtual void OnMessage(rtc::Message* msg); | 86 void OnMessage(rtc::Message* msg) override; |
| 87 | 87 |
| 88 // The DTMF sending task. | 88 // The DTMF sending task. |
| 89 void DoInsertDtmf(); | 89 void DoInsertDtmf(); |
| 90 | 90 |
| 91 void OnProviderDestroyed(); | 91 void OnProviderDestroyed(); |
| 92 | 92 |
| 93 void StopSending(); | 93 void StopSending(); |
| 94 | 94 |
| 95 rtc::scoped_refptr<AudioTrackInterface> track_; | 95 rtc::scoped_refptr<AudioTrackInterface> track_; |
| 96 DtmfSenderObserverInterface* observer_; | 96 DtmfSenderObserverInterface* observer_; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 114 PROXY_CONSTMETHOD0(int, duration) | 114 PROXY_CONSTMETHOD0(int, duration) |
| 115 PROXY_CONSTMETHOD0(int, inter_tone_gap) | 115 PROXY_CONSTMETHOD0(int, inter_tone_gap) |
| 116 END_SIGNALING_PROXY() | 116 END_SIGNALING_PROXY() |
| 117 | 117 |
| 118 // Get DTMF code from the DTMF event character. | 118 // Get DTMF code from the DTMF event character. |
| 119 bool GetDtmfCode(char tone, int* code); | 119 bool GetDtmfCode(char tone, int* code); |
| 120 | 120 |
| 121 } // namespace webrtc | 121 } // namespace webrtc |
| 122 | 122 |
| 123 #endif // WEBRTC_API_DTMFSENDER_H_ | 123 #endif // WEBRTC_API_DTMFSENDER_H_ |
| OLD | NEW |