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

Side by Side Diff: third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp

Issue 2577053002: ActiveScriptWrappable: GC wrappers in detached ExecutionContexts. (Closed)
Patch Set: component build fix(msvc) Created 4 years 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 // 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 new MediaRecorder(context, stream, options, exceptionState); 153 new MediaRecorder(context, stream, options, exceptionState);
154 recorder->suspendIfNeeded(); 154 recorder->suspendIfNeeded();
155 155
156 return recorder; 156 return recorder;
157 } 157 }
158 158
159 MediaRecorder::MediaRecorder(ExecutionContext* context, 159 MediaRecorder::MediaRecorder(ExecutionContext* context,
160 MediaStream* stream, 160 MediaStream* stream,
161 const MediaRecorderOptions& options, 161 const MediaRecorderOptions& options,
162 ExceptionState& exceptionState) 162 ExceptionState& exceptionState)
163 : ActiveScriptWrappable(this), 163 : ActiveScriptWrappable<MediaRecorder>(this),
164 SuspendableObject(context), 164 SuspendableObject(context),
165 m_stream(stream), 165 m_stream(stream),
166 m_streamAmountOfTracks(stream->getTracks().size()), 166 m_streamAmountOfTracks(stream->getTracks().size()),
167 m_mimeType(options.hasMimeType() ? options.mimeType() : kDefaultMimeType), 167 m_mimeType(options.hasMimeType() ? options.mimeType() : kDefaultMimeType),
168 m_stopped(true), 168 m_stopped(true),
169 m_ignoreMutedMedia(true), 169 m_ignoreMutedMedia(true),
170 m_audioBitsPerSecond(0), 170 m_audioBitsPerSecond(0),
171 m_videoBitsPerSecond(0), 171 m_videoBitsPerSecond(0),
172 m_state(State::Inactive), 172 m_state(State::Inactive),
173 m_dispatchScheduledEventRunner(AsyncMethodRunner<MediaRecorder>::create( 173 m_dispatchScheduledEventRunner(AsyncMethodRunner<MediaRecorder>::create(
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 393
394 DEFINE_TRACE(MediaRecorder) { 394 DEFINE_TRACE(MediaRecorder) {
395 visitor->trace(m_stream); 395 visitor->trace(m_stream);
396 visitor->trace(m_dispatchScheduledEventRunner); 396 visitor->trace(m_dispatchScheduledEventRunner);
397 visitor->trace(m_scheduledEvents); 397 visitor->trace(m_scheduledEvents);
398 EventTargetWithInlineData::trace(visitor); 398 EventTargetWithInlineData::trace(visitor);
399 SuspendableObject::trace(visitor); 399 SuspendableObject::trace(visitor);
400 } 400 }
401 401
402 } // namespace blink 402 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698