SSIA.
Created attachment 300698 [details] Patch
Comment on attachment 300698 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=300698&action=review > Source/WebCore/testing/MockCDMFactory.h:75 > + Vector<Ref<SharedBuffer>> removeKeysFromSessionWithID(const String& id); You don't need the parameter name here.
Comment on attachment 300698 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=300698&action=review > Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp:422 > + CDMInstance::LicenseType sessionType; > + switch (m_sessionType) { > + case MediaKeySessionType::Temporary: > + sessionType = CDMInstance::LicenseType::Temporary; > + break; > + case MediaKeySessionType::PersistentLicense: > + sessionType = CDMInstance::LicenseType::Persistable; > + break; > + case MediaKeySessionType::PersistentUsageRecord: > + sessionType = CDMInstance::LicenseType::UsageRecord; > + break; > + }; This pattern happens enough in the new MSE code that we should have a conversion routine to cast between MediaKeySessionType <-> LicenseType.
(In reply to comment #3) > This pattern happens enough in the new MSE code that we should have a > conversion routine to cast between MediaKeySessionType <-> LicenseType. Posted a patch in bug #167896.
(In reply to comment #3) > > Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp:422 > > + CDMInstance::LicenseType sessionType; > > + switch (m_sessionType) { > > + case MediaKeySessionType::Temporary: > > + sessionType = CDMInstance::LicenseType::Temporary; > > + break; > > + case MediaKeySessionType::PersistentLicense: > > + sessionType = CDMInstance::LicenseType::Persistable; > > + break; > > + case MediaKeySessionType::PersistentUsageRecord: > > + sessionType = CDMInstance::LicenseType::UsageRecord; > > + break; > > + }; > > This pattern happens enough in the new MSE code that we should have a > conversion routine to cast between MediaKeySessionType <-> LicenseType. I thought of that too but I thought it might be left for a rework later. Same goes for several functions that we have on the tests and I am seeing repeated during the latest patches review processes.
Created attachment 300886 [details] Patch for landing
Comment on attachment 300886 [details] Patch for landing Clearing flags on attachment: 300886 Committed r211857: <http://trac.webkit.org/changeset/211857>
All reviewed patches have been landed. Closing bug.