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 |
11 #include "webrtc/pc/dtmfsender.h" | 11 #include "webrtc/pc/dtmfsender.h" |
12 | 12 |
13 #include <ctype.h> | 13 #include <ctype.h> |
14 | 14 |
15 #include <string> | 15 #include <string> |
16 | 16 |
17 #include "webrtc/base/checks.h" | 17 #include "webrtc/rtc_base/checks.h" |
18 #include "webrtc/base/logging.h" | 18 #include "webrtc/rtc_base/logging.h" |
19 #include "webrtc/base/thread.h" | 19 #include "webrtc/rtc_base/thread.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 | 22 |
23 enum { | 23 enum { |
24 MSG_DO_INSERT_DTMF = 0, | 24 MSG_DO_INSERT_DTMF = 0, |
25 }; | 25 }; |
26 | 26 |
27 // RFC4733 | 27 // RFC4733 |
28 // +-------+--------+------+---------+ | 28 // +-------+--------+------+---------+ |
29 // | Event | Code | Type | Volume? | | 29 // | Event | Code | Type | Volume? | |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 LOG(LS_INFO) << "The Dtmf provider is deleted. Clear the sending queue."; | 230 LOG(LS_INFO) << "The Dtmf provider is deleted. Clear the sending queue."; |
231 StopSending(); | 231 StopSending(); |
232 provider_ = NULL; | 232 provider_ = NULL; |
233 } | 233 } |
234 | 234 |
235 void DtmfSender::StopSending() { | 235 void DtmfSender::StopSending() { |
236 signaling_thread_->Clear(this); | 236 signaling_thread_->Clear(this); |
237 } | 237 } |
238 | 238 |
239 } // namespace webrtc | 239 } // namespace webrtc |
OLD | NEW |