| OLD | NEW |
| 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(), |
| 378 this, | 378 this, |
| 379 ClosedPromise::Closed)), | 379 ClosedPromise::Closed)), |
| 380 m_actionTimer(this, &MediaKeySession::actionTimerFired) { | 380 m_actionTimer(this, &MediaKeySession::actionTimerFired) { |
| 381 DVLOG(MEDIA_KEY_SESSION_LOG_LEVEL) << __func__ << "(" << this << ")"; | 381 DVLOG(MEDIA_KEY_SESSION_LOG_LEVEL) << __func__ << "(" << this << ")"; |
| 382 ThreadState::current()->registerPreFinalizer(this); | |
| 383 | 382 |
| 384 // Create the matching Chromium object. It will not be usable until | 383 // Create the matching Chromium object. It will not be usable until |
| 385 // initializeNewSession() is called in response to the user calling | 384 // initializeNewSession() is called in response to the user calling |
| 386 // generateRequest(). | 385 // generateRequest(). |
| 387 WebContentDecryptionModule* cdm = mediaKeys->contentDecryptionModule(); | 386 WebContentDecryptionModule* cdm = mediaKeys->contentDecryptionModule(); |
| 388 m_session = WTF::wrapUnique(cdm->createSession()); | 387 m_session = WTF::wrapUnique(cdm->createSession()); |
| 389 m_session->setClientInterface(this); | 388 m_session->setClientInterface(this); |
| 390 | 389 |
| 391 // From https://w3c.github.io/encrypted-media/#createSession: | 390 // From https://w3c.github.io/encrypted-media/#createSession: |
| 392 // MediaKeys::createSession(), step 3. | 391 // MediaKeys::createSession(), step 3. |
| (...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1045 visitor->trace(m_asyncEventQueue); | 1044 visitor->trace(m_asyncEventQueue); |
| 1046 visitor->trace(m_pendingActions); | 1045 visitor->trace(m_pendingActions); |
| 1047 visitor->trace(m_mediaKeys); | 1046 visitor->trace(m_mediaKeys); |
| 1048 visitor->trace(m_keyStatusesMap); | 1047 visitor->trace(m_keyStatusesMap); |
| 1049 visitor->trace(m_closedPromise); | 1048 visitor->trace(m_closedPromise); |
| 1050 EventTargetWithInlineData::trace(visitor); | 1049 EventTargetWithInlineData::trace(visitor); |
| 1051 SuspendableObject::trace(visitor); | 1050 SuspendableObject::trace(visitor); |
| 1052 } | 1051 } |
| 1053 | 1052 |
| 1054 } // namespace blink | 1053 } // namespace blink |
| OLD | NEW |