1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MEDIA_CDM_PPAPI_SUPPORTED_CDM_VERSIONS_H_
6 #define MEDIA_CDM_PPAPI_SUPPORTED_CDM_VERSIONS_H_
8 #include "media/cdm/ppapi/api/content_decryption_module.h"
12 bool IsSupportedCdmModuleVersion(int version) {
15 case CDM_MODULE_VERSION:
22 bool IsSupportedCdmInterfaceVersion(int version) {
23 COMPILE_ASSERT(cdm::ContentDecryptionModule::kVersion ==
24 cdm::ContentDecryptionModule_6::kVersion,
27 // Supported versions in decreasing order.
28 case cdm::ContentDecryptionModule_6::kVersion:
29 case cdm::ContentDecryptionModule_5::kVersion:
30 case cdm::ContentDecryptionModule_4::kVersion:
37 bool IsSupportedCdmHostVersion(int version) {
38 COMPILE_ASSERT(cdm::ContentDecryptionModule::Host::kVersion ==
39 cdm::ContentDecryptionModule_6::Host::kVersion,
42 // Supported versions in decreasing order.
43 case cdm::Host_6::kVersion:
44 case cdm::Host_5::kVersion:
45 case cdm::Host_4::kVersion:
54 #endif // MEDIA_CDM_PPAPI_SUPPORTED_CDM_VERSIONS_H_