OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "modules/mediarecorder/MediaRecorder.h" | 5 #include "modules/mediarecorder/MediaRecorder.h" |
6 | 6 |
7 #include "bindings/core/v8/Dictionary.h" | 7 #include "bindings/core/v8/Dictionary.h" |
8 #include "core/events/Event.h" | 8 #include "core/events/Event.h" |
9 #include "core/fileapi/Blob.h" | 9 #include "core/fileapi/Blob.h" |
10 #include "core/inspector/ConsoleMessage.h" | 10 #include "core/inspector/ConsoleMessage.h" |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 } | 307 } |
308 | 308 |
309 void MediaRecorder::suspend() { | 309 void MediaRecorder::suspend() { |
310 m_dispatchScheduledEventRunner->suspend(); | 310 m_dispatchScheduledEventRunner->suspend(); |
311 } | 311 } |
312 | 312 |
313 void MediaRecorder::resume() { | 313 void MediaRecorder::resume() { |
314 m_dispatchScheduledEventRunner->resume(); | 314 m_dispatchScheduledEventRunner->resume(); |
315 } | 315 } |
316 | 316 |
317 void MediaRecorder::stop() { | 317 void MediaRecorder::contextDestroyed() { |
318 if (m_stopped) | 318 if (m_stopped) |
319 return; | 319 return; |
320 | 320 |
321 m_stopped = true; | 321 m_stopped = true; |
322 m_stream.clear(); | 322 m_stream.clear(); |
323 m_recorderHandler.reset(); | 323 m_recorderHandler.reset(); |
324 } | 324 } |
325 | 325 |
326 void MediaRecorder::writeData(const char* data, | 326 void MediaRecorder::writeData(const char* data, |
327 size_t length, | 327 size_t length, |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 | 392 |
393 DEFINE_TRACE(MediaRecorder) { | 393 DEFINE_TRACE(MediaRecorder) { |
394 visitor->trace(m_stream); | 394 visitor->trace(m_stream); |
395 visitor->trace(m_dispatchScheduledEventRunner); | 395 visitor->trace(m_dispatchScheduledEventRunner); |
396 visitor->trace(m_scheduledEvents); | 396 visitor->trace(m_scheduledEvents); |
397 EventTargetWithInlineData::trace(visitor); | 397 EventTargetWithInlineData::trace(visitor); |
398 ActiveDOMObject::trace(visitor); | 398 ActiveDOMObject::trace(visitor); |
399 } | 399 } |
400 | 400 |
401 } // namespace blink | 401 } // namespace blink |
OLD | NEW |