| 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 // [1] https://w3c.github.io/mediacapture-record/MediaRecorder.html#methods | 251 // [1] https://w3c.github.io/mediacapture-record/MediaRecorder.html#methods |
| 252 ContentType contentType(type); | 252 ContentType contentType(type); |
| 253 return handler->canSupportMimeType(contentType.type(), contentType.parameter
("codecs")); | 253 return handler->canSupportMimeType(contentType.type(), contentType.parameter
("codecs")); |
| 254 } | 254 } |
| 255 | 255 |
| 256 const AtomicString& MediaRecorder::interfaceName() const | 256 const AtomicString& MediaRecorder::interfaceName() const |
| 257 { | 257 { |
| 258 return EventTargetNames::MediaRecorder; | 258 return EventTargetNames::MediaRecorder; |
| 259 } | 259 } |
| 260 | 260 |
| 261 ExecutionContext* MediaRecorder::executionContext() const | 261 ExecutionContext* MediaRecorder::getExecutionContext() const |
| 262 { | 262 { |
| 263 return ActiveDOMObject::executionContext(); | 263 return ActiveDOMObject::getExecutionContext(); |
| 264 } | 264 } |
| 265 | 265 |
| 266 void MediaRecorder::suspend() | 266 void MediaRecorder::suspend() |
| 267 { | 267 { |
| 268 m_dispatchScheduledEventRunner->suspend(); | 268 m_dispatchScheduledEventRunner->suspend(); |
| 269 } | 269 } |
| 270 | 270 |
| 271 void MediaRecorder::resume() | 271 void MediaRecorder::resume() |
| 272 { | 272 { |
| 273 m_dispatchScheduledEventRunner->resume(); | 273 m_dispatchScheduledEventRunner->resume(); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 DEFINE_TRACE(MediaRecorder) | 351 DEFINE_TRACE(MediaRecorder) |
| 352 { | 352 { |
| 353 visitor->trace(m_stream); | 353 visitor->trace(m_stream); |
| 354 visitor->trace(m_dispatchScheduledEventRunner); | 354 visitor->trace(m_dispatchScheduledEventRunner); |
| 355 visitor->trace(m_scheduledEvents); | 355 visitor->trace(m_scheduledEvents); |
| 356 RefCountedGarbageCollectedEventTargetWithInlineData<MediaRecorder>::trace(vi
sitor); | 356 RefCountedGarbageCollectedEventTargetWithInlineData<MediaRecorder>::trace(vi
sitor); |
| 357 ActiveDOMObject::trace(visitor); | 357 ActiveDOMObject::trace(visitor); |
| 358 } | 358 } |
| 359 | 359 |
| 360 } // namespace blink | 360 } // namespace blink |
| OLD | NEW |