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

Side by Side Diff: third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.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 /* 1 /*
2 * Copyright (C) 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2013 Apple 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 WebEncryptedMediaSessionType sessionType) { 357 WebEncryptedMediaSessionType sessionType) {
358 MediaKeySession* session = 358 MediaKeySession* session =
359 new MediaKeySession(scriptState, mediaKeys, sessionType); 359 new MediaKeySession(scriptState, mediaKeys, sessionType);
360 session->suspendIfNeeded(); 360 session->suspendIfNeeded();
361 return session; 361 return session;
362 } 362 }
363 363
364 MediaKeySession::MediaKeySession(ScriptState* scriptState, 364 MediaKeySession::MediaKeySession(ScriptState* scriptState,
365 MediaKeys* mediaKeys, 365 MediaKeys* mediaKeys,
366 WebEncryptedMediaSessionType sessionType) 366 WebEncryptedMediaSessionType sessionType)
367 : ActiveScriptWrappable(this), 367 : ActiveScriptWrappable<MediaKeySession>(this),
368 SuspendableObject(scriptState->getExecutionContext()), 368 SuspendableObject(scriptState->getExecutionContext()),
369 m_asyncEventQueue(GenericEventQueue::create(this)), 369 m_asyncEventQueue(GenericEventQueue::create(this)),
370 m_mediaKeys(mediaKeys), 370 m_mediaKeys(mediaKeys),
371 m_sessionType(sessionType), 371 m_sessionType(sessionType),
372 m_expiration(std::numeric_limits<double>::quiet_NaN()), 372 m_expiration(std::numeric_limits<double>::quiet_NaN()),
373 m_keyStatusesMap(new MediaKeyStatusMap()), 373 m_keyStatusesMap(new MediaKeyStatusMap()),
374 m_isUninitialized(true), 374 m_isUninitialized(true),
375 m_isCallable(false), 375 m_isCallable(false),
376 m_isClosed(false), 376 m_isClosed(false),
377 m_closedPromise(new ClosedPromise(scriptState->getExecutionContext(), 377 m_closedPromise(new ClosedPromise(scriptState->getExecutionContext(),
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 visitor->trace(m_asyncEventQueue); 1044 visitor->trace(m_asyncEventQueue);
1045 visitor->trace(m_pendingActions); 1045 visitor->trace(m_pendingActions);
1046 visitor->trace(m_mediaKeys); 1046 visitor->trace(m_mediaKeys);
1047 visitor->trace(m_keyStatusesMap); 1047 visitor->trace(m_keyStatusesMap);
1048 visitor->trace(m_closedPromise); 1048 visitor->trace(m_closedPromise);
1049 EventTargetWithInlineData::trace(visitor); 1049 EventTargetWithInlineData::trace(visitor);
1050 SuspendableObject::trace(visitor); 1050 SuspendableObject::trace(visitor);
1051 } 1051 }
1052 1052
1053 } // namespace blink 1053 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698