Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(806)

Side by Side Diff: third_party/WebKit/Source/modules/peerconnection/RTCDTMFSender.cpp

Issue 2366253002: Remove ActiveDOMObject::stop() (Closed)
Patch Set: temp Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 } 153 }
154 154
155 const AtomicString& RTCDTMFSender::interfaceName() const { 155 const AtomicString& RTCDTMFSender::interfaceName() const {
156 return EventTargetNames::RTCDTMFSender; 156 return EventTargetNames::RTCDTMFSender;
157 } 157 }
158 158
159 ExecutionContext* RTCDTMFSender::getExecutionContext() const { 159 ExecutionContext* RTCDTMFSender::getExecutionContext() const {
160 return ActiveDOMObject::getExecutionContext(); 160 return ActiveDOMObject::getExecutionContext();
161 } 161 }
162 162
163 void RTCDTMFSender::stop() { 163 void RTCDTMFSender::contextDestroyed() {
164 m_stopped = true; 164 m_stopped = true;
165 m_handler->setClient(nullptr); 165 m_handler->setClient(nullptr);
166 } 166 }
167 167
168 void RTCDTMFSender::scheduleDispatchEvent(Event* event) { 168 void RTCDTMFSender::scheduleDispatchEvent(Event* event) {
169 m_scheduledEvents.append(event); 169 m_scheduledEvents.append(event);
170 170
171 if (!m_scheduledEventTimer.isActive()) 171 if (!m_scheduledEventTimer.isActive())
172 m_scheduledEventTimer.startOneShot(0, BLINK_FROM_HERE); 172 m_scheduledEventTimer.startOneShot(0, BLINK_FROM_HERE);
173 } 173 }
(...skipping 11 matching lines...) Expand all
185 } 185 }
186 186
187 DEFINE_TRACE(RTCDTMFSender) { 187 DEFINE_TRACE(RTCDTMFSender) {
188 visitor->trace(m_track); 188 visitor->trace(m_track);
189 visitor->trace(m_scheduledEvents); 189 visitor->trace(m_scheduledEvents);
190 EventTargetWithInlineData::trace(visitor); 190 EventTargetWithInlineData::trace(visitor);
191 ActiveDOMObject::trace(visitor); 191 ActiveDOMObject::trace(visitor);
192 } 192 }
193 193
194 } // namespace blink 194 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698