Chromium Code Reviews| Index: media/cdm/supported_cdm_versions.h |
| diff --git a/media/cdm/supported_cdm_versions.h b/media/cdm/supported_cdm_versions.h |
| index 660919618b434dc0682ced6b332483e6c38bfc08..819a4f3c92f8962e403e4c7cee9a61a0c5f91521 100644 |
| --- a/media/cdm/supported_cdm_versions.h |
| +++ b/media/cdm/supported_cdm_versions.h |
| @@ -5,47 +5,21 @@ |
| #ifndef MEDIA_CDM_SUPPORTED_CDM_VERSIONS_H_ |
| #define MEDIA_CDM_SUPPORTED_CDM_VERSIONS_H_ |
| -#include "media/cdm/api/content_decryption_module.h" |
| +#ifdef USE_PPAPI_CDM_ADAPTER |
| +// When building the adapter these functions need to be local. |
| +#define FUNCTION_EXPORT |
| +#else |
| +#include "media/base/media_export.h" |
| +#define FUNCTION_EXPORT MEDIA_EXPORT |
| +#endif |
| namespace media { |
| -bool IsSupportedCdmModuleVersion(int version) { |
| - switch (version) { |
| - // Latest. |
| - case CDM_MODULE_VERSION: |
| - return true; |
| - default: |
| - return false; |
| - } |
| -} |
| - |
| -bool IsSupportedCdmInterfaceVersion(int version) { |
| - static_assert(cdm::ContentDecryptionModule::kVersion == |
| - cdm::ContentDecryptionModule_8::kVersion, |
| - "update the code below"); |
| - switch (version) { |
| - // Supported versions in decreasing order. |
| - case cdm::ContentDecryptionModule_8::kVersion: |
| - case cdm::ContentDecryptionModule_7::kVersion: |
| - return true; |
| - default: |
| - return false; |
| - } |
| -} |
| - |
| -bool IsSupportedCdmHostVersion(int version) { |
| - static_assert(cdm::ContentDecryptionModule::Host::kVersion == |
| - cdm::ContentDecryptionModule_8::Host::kVersion, |
| - "update the code below"); |
| - switch (version) { |
| - // Supported versions in decreasing order. |
| - case cdm::Host_8::kVersion: |
| - case cdm::Host_7::kVersion: |
| - return true; |
| - default: |
| - return false; |
| - } |
| -} |
| +FUNCTION_EXPORT bool IsSupportedCdmModuleVersion(int version); |
| + |
| +FUNCTION_EXPORT bool IsSupportedCdmInterfaceVersion(int version); |
| + |
| +FUNCTION_EXPORT bool IsSupportedCdmHostVersion(int version); |
|
xhwang
2015/11/03 23:07:25
#undef FUNCTION_EXPORT after this to avoid any une
jrummell
2015/11/03 23:51:39
Done.
|
| } // namespace media |