#include "third_party/blink/renderer/modules/peerconnection/rtc_dtmf_sender.h"
#include <memory>
#include "third_party/blink/public/platform/task_type.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/modules/mediastream/media_stream_track.h"
#include "third_party/blink/renderer/modules/peerconnection/rtc_dtmf_tone_change_event.h"
#include "third_party/blink/renderer/modules/peerconnection/rtc_peer_connection_handler.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/peerconnection/rtc_dtmf_sender_handler.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
namespace blink {
static const int kMinToneDurationMs = …;
static const int kDefaultToneDurationMs = …;
static const int kMaxToneDurationMs = …;
static const int kMinInterToneGapMs = …;
static const int kMaxInterToneGapMs = …;
static const int kDefaultInterToneGapMs = …;
RTCDTMFSender* RTCDTMFSender::Create(
ExecutionContext* context,
std::unique_ptr<RtcDtmfSenderHandler> dtmf_sender_handler) { … }
RTCDTMFSender::RTCDTMFSender(ExecutionContext* context,
std::unique_ptr<RtcDtmfSenderHandler> handler)
: … { … }
RTCDTMFSender::~RTCDTMFSender() = default;
void RTCDTMFSender::Dispose() { … }
bool RTCDTMFSender::canInsertDTMF() const { … }
String RTCDTMFSender::toneBuffer() const { … }
void RTCDTMFSender::insertDTMF(const String& tones,
ExceptionState& exception_state) { … }
void RTCDTMFSender::insertDTMF(const String& tones,
int duration,
ExceptionState& exception_state) { … }
void RTCDTMFSender::insertDTMF(const String& tones,
int duration,
int inter_tone_gap,
ExceptionState& exception_state) { … }
void RTCDTMFSender::PlayoutTask() { … }
void RTCDTMFSender::DidPlayTone(const String& tone) { … }
const AtomicString& RTCDTMFSender::InterfaceName() const { … }
ExecutionContext* RTCDTMFSender::GetExecutionContext() const { … }
void RTCDTMFSender::ContextDestroyed() { … }
void RTCDTMFSender::Trace(Visitor* visitor) const { … }
}